mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-15 16:07:55 +03:00
Correct upper range for mt_rand.
This commit is contained in:
+1
-1
@@ -1226,7 +1226,7 @@ final class Uuid
|
||||
|
||||
$bytes = '';
|
||||
foreach (range(1, $length) as $i) {
|
||||
$bytes = chr(mt_rand(0, 256)) . $bytes;
|
||||
$bytes = chr(mt_rand(0, 255)) . $bytes;
|
||||
}
|
||||
|
||||
return $bytes;
|
||||
|
||||
Reference in New Issue
Block a user