diff options
author | 180909 <734461790@qq.com> | 2023-04-26 20:27:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 20:27:03 (GMT) |
commit | e901588002f3ac5bf4d3c61cda5ad7bf50bacadd (patch) | |
tree | 7992d74dc20e997aa66166df7067c8953e4e5d03 /Lib/uuid.py | |
parent | 842daa57cf93280dfb3430061007b7d54d3c1353 (diff) | |
download | cpython-e901588002f3ac5bf4d3c61cda5ad7bf50bacadd.zip cpython-e901588002f3ac5bf4d3c61cda5ad7bf50bacadd.tar.gz cpython-e901588002f3ac5bf4d3c61cda5ad7bf50bacadd.tar.bz2 |
Update MAC_address wikipedia URL in comments (#29019)
Diffstat (limited to 'Lib/uuid.py')
-rw-r--r-- | Lib/uuid.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/uuid.py b/Lib/uuid.py index 698be34..697f3b4 100644 --- a/Lib/uuid.py +++ b/Lib/uuid.py @@ -401,7 +401,7 @@ def _get_command_stdout(command, *args): # over locally administered ones since the former are globally unique, but # we'll return the first of the latter found if that's all the machine has. # -# See https://en.wikipedia.org/wiki/MAC_address#Universal_vs._local +# See https://en.wikipedia.org/wiki/MAC_address#Universal_vs._local_(U/L_bit) def _is_universal(mac): return not (mac & (1 << 41)) @@ -615,7 +615,7 @@ def _random_getnode(): # significant bit of the first octet". This works out to be the 41st bit # counting from 1 being the least significant bit, or 1<<40. # - # See https://en.wikipedia.org/wiki/MAC_address#Unicast_vs._multicast + # See https://en.wikipedia.org/w/index.php?title=MAC_address&oldid=1128764812#Universal_vs._local_(U/L_bit) import random return random.getrandbits(48) | (1 << 40) |