mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
8264976: Minor numeric bug in AbstractSplittableWithBrineGenerator.makeSplitsSpliterator
Reviewed-by: psandoz, jlaskey
This commit is contained in:
parent
80026d81a4
commit
94067446ba
1 changed files with 1 additions and 1 deletions
|
@ -2436,7 +2436,7 @@ public class RandomSupport {
|
|||
// designed to work even if SALT_SHIFT does not evenly divide 64
|
||||
// (the number of bits in a long value).
|
||||
long bits = nextLong();
|
||||
long multiplier = (1 << SALT_SHIFT) - 1;
|
||||
long multiplier = (1L << SALT_SHIFT) - 1;
|
||||
long salt = multiplier << (64 - SALT_SHIFT);
|
||||
while ((salt & multiplier) != 0) {
|
||||
long digit = Math.multiplyHigh(bits, multiplier);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue