We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f84d30 commit cc664c3Copy full SHA for cc664c3
1 file changed
src/uuid6/__init__.py
@@ -4,7 +4,6 @@
4
https://github.com/uuid6/uuid6-ietf-draft.
5
"""
6
7
-import math
8
import secrets
9
import time
10
from uuid import UUID
@@ -55,7 +54,7 @@ def unixts(self) -> int:
55
54
56
57
def _subsec_decode(value: int) -> int:
58
- return math.ceil(value * 10 ** 9 / 2 ** 30)
+ return -(-value * 10 ** 9 // 2 ** 30)
59
60
61
def _subsec_encode(value: int) -> int:
0 commit comments