use a locally administered mac address so it isn't saved by udev
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user