1
0
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:
Maik Penz 2013-02-05 21:34:41 +01:00
parent 9870a9c926
commit d24287d67a

View File

@ -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);