Skip to content

Commit 299d7a5

Browse files
authored
Update Lib/uuid.py
1 parent e60c126 commit 299d7a5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Lib/uuid.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -834,10 +834,9 @@ def uuid6(node=None, clock_seq=None):
834834
_last_counter_v7 = 0 # 42-bit counter
835835
# Indicate whether one or more counter overflow(s) happened in the same frame.
836836
#
837-
# Since the timestamp is advanced after a counter overflow by design,
838-
# we must prevent advancing the timestamp again in the calls that
839-
# follow a call with a counter overflow and for which the logical
840-
# timestamp millisecond is the same.
837+
# Since the timestamp is incremented after a counter overflow by design,
838+
# we must prevent incrementing the timestamp again in consecutive calls
839+
# for which the logical timestamp millisecond remains the same.
841840
#
842841
# If the resampled counter hits an overflow again within the same time,
843842
# we want to advance the timestamp again and resample the timestamp.

0 commit comments

Comments
 (0)