mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
Merge pull request #33 from gabrielsch/fix/unused-variable
Optimizing byte generation loop
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user