HHH-18377 Removed masking that is not needed
This commit is contained in:
parent
3419f8f3ad
commit
8ca2481df1
|
@ -112,7 +112,7 @@ public class UuidVersion6Strategy implements UUIDGenerationStrategy, UuidValueGe
|
|||
// LSB bits 0-1 - variant = 4
|
||||
0x8000_0000_0000_0000L
|
||||
// LSB bits 2-15 - clock sequence
|
||||
| ( state.lastSequence & 0x3FFFL ) << 48
|
||||
| (long) state.lastSequence << 48
|
||||
// LSB bits 16-63 - pseudorandom data, least significant bit of the first octet is set to 1
|
||||
| randomNode()
|
||||
);
|
||||
|
|
|
@ -116,7 +116,7 @@ public class UuidVersion7Strategy implements UUIDGenerationStrategy, UuidValueGe
|
|||
// LSB bits 0-1 - variant = 4
|
||||
0x8000_0000_0000_0000L
|
||||
// LSB bits 2-15 - counter
|
||||
| ( state.lastSequence & 0x3FFFL ) << 48
|
||||
| (long) state.lastSequence << 48
|
||||
// LSB bits 16-63 - pseudorandom data
|
||||
| randomNode()
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue