]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update MAC_address wikipedia URL in comments (#29019)
author180909 <734461790@qq.com>
Wed, 26 Apr 2023 20:27:03 +0000 (04:27 +0800)
committerGitHub <noreply@github.com>
Wed, 26 Apr 2023 20:27:03 +0000 (14:27 -0600)
Lib/uuid.py

index 698be34873b9dc94b58156bff7cebac8f2c157c7..697f3b455970235d21b02bfd1ceea0bc245514b7 100644 (file)
@@ -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)