mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-15 16:07:55 +03:00
fixed off-by-one error on DefaultTimeGenerator
This commit is contained in:
committed by
Ben Ramsey
parent
8727e30fb5
commit
3567caf3f9
@@ -79,7 +79,7 @@ class DefaultTimeGenerator implements TimeGeneratorInterface
|
||||
|
||||
if ($clockSeq === null) {
|
||||
// Not using "stable storage"; see RFC 4122, Section 4.2.1.1
|
||||
$clockSeq = mt_rand(0, 1 << 14);
|
||||
$clockSeq = mt_rand(0, 0x3fff);
|
||||
}
|
||||
|
||||
// Create a 60-bit time value as a count of 100-nanosecond intervals
|
||||
|
||||
Reference in New Issue
Block a user