Skip to content

Commit

Permalink
HHH-18377 Removed masking that is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
cigaly authored and beikov committed Oct 16, 2024
1 parent 3419f8f commit 8ca2481
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public UUID generateUuid(final SharedSessionContractImplementor session) {
// 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()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public UUID generateUuid(final SharedSessionContractImplementor session) {
// 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()
);
Expand Down

0 comments on commit 8ca2481

Please sign in to comment.