]> granicus.if.org Git - python/commit
bpo-31784: Use time.time_ns() in uuid.uuid1() (GH-11189)
authorVictor Stinner <vstinner@redhat.com>
Tue, 18 Dec 2018 10:45:13 +0000 (11:45 +0100)
committerGitHub <noreply@github.com>
Tue, 18 Dec 2018 10:45:13 +0000 (11:45 +0100)
commit62a68b762a479a72c3defba9ace5f72a0063c5c6
treedcadb35bdadeaae4cd99842e65e2a3bf412336ec
parent1dd035954bb03c41b954ebbd63969b4bcb0e106e
bpo-31784: Use time.time_ns() in uuid.uuid1() (GH-11189)

uuid.uuid1() now calls time.time_ns() rather than
int(time.time() * 1e9). Replace also int(nanoseconds/100)
with nanoseconds // 100. Add an unit test.
Lib/test/test_uuid.py
Lib/uuid.py
Misc/NEWS.d/next/Library/2018-12-17-11-43-11.bpo-31784.W0gDjC.rst [new file with mode: 0644]