Skip to content

Commit 4b8a59e

Browse files
LamentXU123picnixz
andauthored
Update Misc/NEWS.d/next/Library/2025-06-08-10-22-22.gh-issue-135244.Y2SOTJ.rst
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 0500d06 commit 4b8a59e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
Python used to generare random Node ID of UUID when it failed to get the MAC address by PRNG.
2-
the random Node ID is now generated by a CSPRNG for security reasons.
1+
:mod:`uuid`: when the MAC address cannot be determined, the 48-bit node
2+
ID is now generated with a cryptographically-secure pseudo-random number
3+
generator (CSPRNG) as per :rfc:`RFC 9562, §6.10 <9562#section-6.10>`.
4+
This affects :func:`~uuid.uuid1` and :func:`~uuid.uuid6`.

0 commit comments

Comments
 (0)