MCPcopy Create free account
hub / github.com/geekcomputers/Python / randmac

Function randmac

changemac.py:17–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16# function for genrate mac address random
17def randmac():
18 return [
19 0x00,
20 0x16,
21 0x3E,
22 random.randint(0x00, 0x7F),
23 random.randint(0x00, 0xFF),
24 random.randint(0x00, 0xFF),
25 ]
26
27
28def retrandmac(mac):

Callers 1

changemac.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected