Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.nio.ByteBuffer;
- randomUUID = java.util.UUID.randomUUID()
- ByteBuffer bb = ByteBuffer.wrap(new byte[16]);
- bb.putLong(randomUUID.getMostSignificantBits());
- bb.putLong(randomUUID.getLeastSignificantBits());
- println new BigInteger(bb.array());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement