mirror of
https://github.com/python/cpython.git
synced 2025-07-30 22:54:16 +00:00
Bug #1541863: uuid.uuid1 failed to generate unique identifiers
on systems with low clock resolution.
This commit is contained in:
parent
59e9ac8ebe
commit
2eb8c4f292
3 changed files with 14 additions and 3 deletions
|
@ -429,7 +429,7 @@ class TestUUID(TestCase):
|
|||
|
||||
# Make sure the generated UUIDs are actually unique.
|
||||
uuids = {}
|
||||
for u in [uuid.uuid1() for i in range(1000)]:
|
||||
for u in [uuid.uuid4() for i in range(1000)]:
|
||||
uuids[u] = 1
|
||||
equal(len(uuids.keys()), 1000)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue