Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Commit

Permalink
Avoid 14bit integer overflow in clock_seq
Browse files Browse the repository at this point in the history
  • Loading branch information
ctavan authored and broofa committed Dec 31, 2011
1 parent 77c53e6 commit a24042b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uuid.js
Expand Up @@ -141,7 +141,7 @@

if (msecs < _last) {
// Clock regression - Per 4.2.1.2, increment clock seq
_clockSeq++;
_clockSeq = (_clockSeq + 1) & 0x3fff
_count = 0;
} else {
// Per 4.2.1.2, use a count of uuid's generated during the current
Expand Down

0 comments on commit a24042b

Please sign in to comment.