bit 16 to 64
This commit is contained in:
parent
acb799cab2
commit
3286aab10c
|
@ -22,7 +22,7 @@ public class UUIDPositiveLongGenerator {
|
||||||
|
|
||||||
public long combineByteBuffer(){
|
public long combineByteBuffer(){
|
||||||
UUID uuid = UUID.randomUUID();
|
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.getMostSignificantBits());
|
||||||
bb.putLong(uuid.getLeastSignificantBits());
|
bb.putLong(uuid.getLeastSignificantBits());
|
||||||
bb.rewind();
|
bb.rewind();
|
||||||
|
|
Loading…
Reference in New Issue