mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-03-22 00:09:59 +01:00
Fixed range mistake.
This commit is contained in:
parent
9870a9c926
commit
d24287d67a
@ -11,7 +11,7 @@ class Uuid extends \Faker\Provider\Base
|
||||
public static function uuid()
|
||||
{
|
||||
// fix for compatibility with 32bit architecture; seed range restricted to 62bit
|
||||
$seed = mt_rand(0, 2147483648) . '#' . mt_rand(0, 2147483648);
|
||||
$seed = mt_rand(0, 2147483647) . '#' . mt_rand(0, 2147483647);
|
||||
|
||||
// Hash the seed and convert to a byte array
|
||||
$val = md5($seed, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user