1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-03-22 00:09:59 +01:00

Internet provider ipv4 32 bit platform support

This commit is contained in:
Christoph Schaefer 2011-11-28 21:39:44 +01:00
parent b7f9b616b0
commit 2b5320482e

View File

@ -107,7 +107,7 @@ class Internet extends \Faker\Provider\Base
*/
public function ipv4()
{
return long2ip(mt_rand(0, "4294967295"));
return long2ip(mt_rand(-2147483648, 2147483647));
}
/**
@ -121,4 +121,4 @@ class Internet extends \Faker\Provider\Base
}
return join(':', $res);
}
}
}