fog/fog — pull request #1303 by dcolebatch (2012-11-23 23:13:22+00:00)
Title: Real mock ips - because bad IPs break stuff

I kept hitting problems with the current way of mocking IPs.

So here I have simplified it by using a little love from the IPAddress class[1] and straight rand... rather than using Mock.random_numbers repeatedly.

Hope this helps others too.

1: https://github.com/LightMesh/ipaddress