diff --git a/src/Faker/Provider/Uuid.php b/src/Faker/Provider/Uuid.php index ea5ecf1e6e..ae5fc86d64 100644 --- a/src/Faker/Provider/Uuid.php +++ b/src/Faker/Provider/Uuid.php @@ -10,7 +10,8 @@ class Uuid extends Base */ public static function uuid() { - // fix for compatibility with 32bit architecture; seed range restricted to 62bit + // fix for compatibility with 32bit architecture; each mt_rand call is restricted to 32bit + // two such calls will cause 64bits of randomness regardless of architecture $seed = mt_rand(0, 2147483647) . '#' . mt_rand(0, 2147483647); // Hash the seed and convert to a byte array