Closed caladd closed 4 years ago
The old code used hex to convert some random bytes to hex. The hex command throws away leading zeros, resulting in MAC addresses that were too short.
hex
This code swaps that out for secrets.hex_token which will always return the correct number of characters.
secrets.hex_token
merged
The old code used
hex
to convert some random bytes to hex. Thehex
command throws away leading zeros, resulting in MAC addresses that were too short.This code swaps that out for
secrets.hex_token
which will always return the correct number of characters.