Merge pull request #33 from gabrielsch/fix/unused-variable

Optimizing byte generation loop
This commit is contained in:
Ben Ramsey
2014-10-10 13:46:04 -05:00
+1 -1
View File
@@ -1225,7 +1225,7 @@ final class Uuid
}
$bytes = '';
foreach (range(1, $length) as $i) {
for ($i = 1; $i <= $length; $i++) {
$bytes = chr(mt_rand(0, 255)) . $bytes;
}