Skip to content

Commit 1aaa483

Browse files
authored
Update Lib/uuid.py
1 parent 295d82d commit 1aaa483

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
@@ -774,7 +774,7 @@ def uuid7():
774774
global _last_timestamp_v7
775775
import time
776776
nanoseconds = time.time_ns()
777-
timestamp_ms = nanoseconds // 10 ** 6 # may be improved
777+
timestamp_ms = nanoseconds // 1_000_000
778778
if _last_timestamp_v7 is not None and timestamp_ms <= _last_timestamp_v7:
779779
timestamp_ms = _last_timestamp_v7 + 1
780780
_last_timestamp_v7 = timestamp_ms

0 commit comments

Comments
 (0)