fixed off-by-one error on DefaultTimeGenerator

This commit is contained in:
Marcel Hernandez
2018-01-19 19:27:29 +01:00
committed by Ben Ramsey
parent 8727e30fb5
commit 3567caf3f9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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