Skip to content

Commit e901588

Browse files
authored
Update MAC_address wikipedia URL in comments (#29019)
1 parent 842daa5 commit e901588

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/uuid.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def _get_command_stdout(command, *args):
401401
# over locally administered ones since the former are globally unique, but
402402
# we'll return the first of the latter found if that's all the machine has.
403403
#
404-
# See https://en.wikipedia.org/wiki/MAC_address#Universal_vs._local
404+
# See https://en.wikipedia.org/wiki/MAC_address#Universal_vs._local_(U/L_bit)
405405

406406
def _is_universal(mac):
407407
return not (mac & (1 << 41))
@@ -615,7 +615,7 @@ def _random_getnode():
615615
# significant bit of the first octet". This works out to be the 41st bit
616616
# counting from 1 being the least significant bit, or 1<<40.
617617
#
618-
# See https://en.wikipedia.org/wiki/MAC_address#Unicast_vs._multicast
618+
# See https://en.wikipedia.org/w/index.php?title=MAC_address&oldid=1128764812#Universal_vs._local_(U/L_bit)
619619
import random
620620
return random.getrandbits(48) | (1 << 40)
621621

0 commit comments

Comments
 (0)