Advertisement
burke

Untitled

Feb 13th, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.25 KB | None | 0 0
  1. import java.nio.ByteBuffer;
  2.  
  3. randomUUID = java.util.UUID.randomUUID()
  4. ByteBuffer bb = ByteBuffer.wrap(new byte[16]);
  5. bb.putLong(randomUUID.getMostSignificantBits());
  6. bb.putLong(randomUUID.getLeastSignificantBits());
  7. println new BigInteger(bb.array());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement