use a locally administered mac address so it isn't saved by udev

This commit is contained in:
Vishvananda Ishaya
2010-07-20 20:28:34 -05:00
parent 7add09e7fd
commit c9180f9b5a

View File

@@ -94,7 +94,7 @@ def generate_uid(topic, size=8):
def generate_mac():
mac = [0x00, 0x16, 0x3e, random.randint(0x00, 0x7f),
mac = [0x02, 0x16, 0x3e, random.randint(0x00, 0x7f),
random.randint(0x00, 0xff), random.randint(0x00, 0xff)
]
return ':'.join(map(lambda x: "%02x" % x, mac))