Skip to content

Commit 99bedcc

Browse files
LamentXU123picnixz
andauthored
Update Lib/uuid.py
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent b11ea05 commit 99bedcc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/uuid.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,8 +666,7 @@ def _random_getnode():
666666
# counting from 1 being the least significant bit, or 1<<40.
667667
#
668668
# See https://en.wikipedia.org/w/index.php?title=MAC_address&oldid=1128764812#Universal_vs._local_(U/L_bit)
669-
670-
return (int.from_bytes(os.urandom(6), 'big')) | (1 << 40)
669+
return int.from_bytes(os.urandom(6)) | (1 << 40)
671670

672671

673672
# _OS_GETTERS, when known, are targeted for a specific OS or platform.

0 commit comments

Comments
 (0)