mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
bitkeeper revision 1.1159.1.230 (416d965arlQEDDF33KaiMFJy_o-s4g)
Better random MAC addresses.
This commit is contained in:
1 parent
5882e4897e
commit
47786d1f32
1 file changed
+1
@@ -264,6 +264,7 @@ def randomMAC():
|
||||
|
||||
@return: MAC address string
|
||||
"""
|
||||
random.seed()
|
||||
mac = [ 0xaa, 0x00, 0x00,
|
||||
random.randint(0x00, 0x7f),
|
||||
random.randint(0x00, 0xff),
|
||||
|
||||