mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8293567: AbstractSplittableWithBrineGenerator: salt has digits that duplicate the marker
Reviewed-by: jlaskey
This commit is contained in:
parent
36b61c5d7e
commit
968af74de4
1 changed files with 1 additions and 1 deletions
|
@ -2399,7 +2399,7 @@ public class RandomSupport {
|
|||
long multiplier = (1L << SALT_SHIFT) - 1;
|
||||
long salt = multiplier << (64 - SALT_SHIFT);
|
||||
while ((salt & multiplier) == 0) {
|
||||
long digit = Math.multiplyHigh(bits, multiplier);
|
||||
long digit = Math.unsignedMultiplyHigh(bits, multiplier);
|
||||
salt = (salt >>> SALT_SHIFT) | (digit << (64 - SALT_SHIFT));
|
||||
bits *= multiplier;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue