File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -401,7 +401,7 @@ def _get_command_stdout(command, *args):
401
401
# over locally administered ones since the former are globally unique, but
402
402
# we'll return the first of the latter found if that's all the machine has.
403
403
#
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)
405
405
406
406
def _is_universal (mac ):
407
407
return not (mac & (1 << 41 ))
@@ -615,7 +615,7 @@ def _random_getnode():
615
615
# significant bit of the first octet". This works out to be the 41st bit
616
616
# counting from 1 being the least significant bit, or 1<<40.
617
617
#
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)
619
619
import random
620
620
return random .getrandbits (48 ) | (1 << 40 )
621
621
You can’t perform that action at this time.
0 commit comments