uuid.getnode returns random numbers
Created by: casperdcl
From the docs:
uuid.getnode = getnode()
Get the hardware address as a 48-bit positive integer.
The first time this runs, it may launch a separate program, which could
be quite slow. If all attempts to obtain the hardware address fail, we
choose a random 48-bit number with its eighth bit set to 1 as recommended
in RFC 4122.
So bashhub
should check first for uuid.getnode() & 0x10000000000
. If this is non-zero then it means uuid.getnode()
will be a different randomly generated number each time it is run - not a unique system ID.