3 ms·
>>> hex(random.randint(0, 2**32)) '0x56dee53b' >>> hex(random.randint(0, 2**64)) '0xedcadadd7a7a8cdfL' A 64-bit number is going to look like edcadadd7a7a
by sillysaurus2 13y ago
>>> hex(random.randint(0, 2**32))
'0x56dee53b'
>>> hex(random.randint(0, 2**64))
'0xedcadadd7a7a8cdfL'
A 64-bit number is going to look like edcadadd7a7a8cdf, which has 16 characters for humans to read, not 8.
- cbhl 13y agoIIRC, IPv6 addresses were 128-bit numbers?