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:
parent
b7f9b616b0
commit
2b5320482e
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user