Skip to content

Commit 10ae4c0

Browse files
authored
Update Lib/uuid.py
1 parent 6611889 commit 10ae4c0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/uuid.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,7 @@ def uuid7():
881881

882882
if _last_timestamp_v7 is None or timestamp_ms > _last_timestamp_v7:
883883
counter, tail = _uuid7_get_counter_and_tail()
884+
# Clear the overflow state every new millisecond.
884885
_last_counter_v7_overflow = False
885886
else:
886887
if timestamp_ms < _last_timestamp_v7:

0 commit comments

Comments
 (0)