bit 16 to 64

This commit is contained in:
@hangga 2023-11-01 18:24:02 +07:00
parent acb799cab2
commit 3286aab10c
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ public class UUIDPositiveLongGenerator {
public long combineByteBuffer(){
UUID uuid = UUID.randomUUID();
ByteBuffer bb = ByteBuffer.wrap(new byte[16]);
ByteBuffer bb = ByteBuffer.wrap(new byte[64]);
bb.putLong(uuid.getMostSignificantBits());
bb.putLong(uuid.getLeastSignificantBits());
bb.rewind();