Can someone please help me out in forming an easy function to extract the leastSignificant & mostSignificant bits in Python?
Ex code in Java:
UUI
Old post but still... Just thought I'd add this:
import struct
import uuid
u = uuid.UUID('c88524da-d88f-11e9-9185-f85971a9ba7d')
msb, lsb = struct.unpack(">qq", u.bytes)
This give the values:
(-3997748571866721815, -7960683703264757123)
... and if I input those into the java.util.UUID constructor, it gives me back the uuid "c88524da-d88f-11e9-9185-f85971a9ba7d"