back to 16

This commit is contained in:
@hangga 2023-11-01 18:26:54 +07:00
parent 3286aab10c
commit 039753af1f
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[64]);
ByteBuffer bb = ByteBuffer.wrap(new byte[16]);
bb.putLong(uuid.getMostSignificantBits());
bb.putLong(uuid.getLeastSignificantBits());
bb.rewind();