Skip to content

Commit 943d13e

Browse files
committed
fix a mask
1 parent 4ef04b9 commit 943d13e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/uuid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ def uuid6(node=None, clock_seq=None):
757757
import random
758758
clock_seq = random.getrandbits(14) # instead of stable storage
759759
time_hi_and_mid = (timestamp >> 12) & 0xffffffffffff
760-
time_ver_and_lo = timestamp & 0xffff
760+
time_ver_and_lo = timestamp & 0x0fff
761761
var_and_clock_s = clock_seq & 0x3fff
762762
if node is None:
763763
node = getnode()

0 commit comments

Comments
 (0)