Skip to content

Commit 7efc5ef

Browse files
committed
gh-139122: Implement uuid6 in C with OS entropy and cached node IDs
1 parent c72b435 commit 7efc5ef

11 files changed

Lines changed: 680 additions & 31 deletions

File tree

‎Doc/whatsnew/3.16.rst‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,10 @@ uuid
864864
(Contributed by Yury Selivanov in :gh:`139123`.)
865865

866866

867+
* :func:`uuid.uuid6` now has a C implementation, with a pure Python fallback.
868+
(Contributed by Yury Selivanov in :gh:`160153`.)
869+
870+
867871
xml
868872
---
869873

‎Include/internal/pycore_global_objects_fini_generated.h‎

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Include/internal/pycore_global_strings.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ struct _Py_global_strings {
378378
STRUCT_FOR_ID(check_same_thread)
379379
STRUCT_FOR_ID(clamp)
380380
STRUCT_FOR_ID(clear)
381+
STRUCT_FOR_ID(clock_seq)
381382
STRUCT_FOR_ID(close)
382383
STRUCT_FOR_ID(closed)
383384
STRUCT_FOR_ID(closefd)
@@ -687,6 +688,7 @@ struct _Py_global_strings {
687688
STRUCT_FOR_ID(newlines)
688689
STRUCT_FOR_ID(next)
689690
STRUCT_FOR_ID(nlocals)
691+
STRUCT_FOR_ID(node)
690692
STRUCT_FOR_ID(node_depth)
691693
STRUCT_FOR_ID(node_offset)
692694
STRUCT_FOR_ID(nothing)

‎Include/internal/pycore_runtime_init_generated.h‎

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Include/internal/pycore_unicodeobject_generated.h‎

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)