Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
2eb8c4f2
Kaydet (Commit)
2eb8c4f2
authored
Agu 18, 2006
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bug #1541863: uuid.uuid1 failed to generate unique identifiers
on systems with low clock resolution.
üst
59e9ac8e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
test_uuid.py
Lib/test/test_uuid.py
+1
-1
uuid.py
Lib/uuid.py
+2
-2
NEWS
Misc/NEWS
+11
-0
No files found.
Lib/test/test_uuid.py
Dosyayı görüntüle @
2eb8c4f2
...
...
@@ -429,7 +429,7 @@ class TestUUID(TestCase):
# Make sure the generated UUIDs are actually unique.
uuids
=
{}
for
u
in
[
uuid
.
uuid
1
()
for
i
in
range
(
1000
)]:
for
u
in
[
uuid
.
uuid
4
()
for
i
in
range
(
1000
)]:
uuids
[
u
]
=
1
equal
(
len
(
uuids
.
keys
()),
1000
)
...
...
Lib/uuid.py
Dosyayı görüntüle @
2eb8c4f2
...
...
@@ -488,8 +488,8 @@ def uuid1(node=None, clock_seq=None):
# 0x01b21dd213814000 is the number of 100-ns intervals between the
# UUID epoch 1582-10-15 00:00:00 and the Unix epoch 1970-01-01 00:00:00.
timestamp
=
int
(
nanoseconds
/
100
)
+
0x01b21dd213814000
L
if
timestamp
=
=
_last_timestamp
:
timestamp
+=
1
if
timestamp
<
=
_last_timestamp
:
timestamp
=
_last_timestamp
+
1
_last_timestamp
=
timestamp
if
clock_seq
is
None
:
import
random
...
...
Misc/NEWS
Dosyayı görüntüle @
2eb8c4f2
...
...
@@ -4,6 +4,17 @@ Python News
(
editors
:
check
NEWS
.
help
for
information
about
editing
NEWS
using
ReST
.)
What
's New in Python 2.5?
=========================
*Release date: XX-SEP-2006*
Library
-------
- Bug #1541863: uuid.uuid1 failed to generate unique identifiers
on systems with low clock resolution.
What'
s
New
in
Python
2.5
release
candidate
1
?
=============================================
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment