Skip to content

Commit b11ea05

Browse files
authored
Update uuid.py
1 parent 5006c19 commit b11ea05

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/uuid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ def _random_getnode():
667667
#
668668
# See https://en.wikipedia.org/w/index.php?title=MAC_address&oldid=1128764812#Universal_vs._local_(U/L_bit)
669669

670-
return (int.from_bytes(__import__('os').urandom(6), 'big')) | (1 << 40)
670+
return (int.from_bytes(os.urandom(6), 'big')) | (1 << 40)
671671

672672

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

0 commit comments

Comments
 (0)