Merge pull request #29 from simensen/correct-upper-range-for-mt_rand

Correct upper range for mt_rand.
This commit is contained in:
Ben Ramsey
2014-08-27 17:34:10 -05:00
+1 -1
View File
@@ -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;