bitkeeper revision 1.1159.1.230 (416d965arlQEDDF33KaiMFJy_o-s4g)

Better random MAC addresses.
This commit is contained in:
kaf24@freefall.cl.cam.ac.uk committed 2004-10-13 20:55:54 +00:00
1 parent 5882e4897e
commit 47786d1f32
1 file changed
+1
+1
View File
@@ -264,6 +264,7 @@ def randomMAC():
@return: MAC address string
"""
random.seed()
mac = [ 0xaa, 0x00, 0x00,
random.randint(0x00, 0x7f),
random.randint(0x00, 0xff),
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.