HHH-18377 Removed masking that is not needed

This commit is contained in:
Čedomir Igaly 2024-10-07 15:33:56 +02:00 committed by Christian Beikov
parent 3419f8f3ad
commit 8ca2481df1
2 changed files with 2 additions and 2 deletions

View File

@ -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()
);

View File

@ -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()
);