Skip to content

Commit 968af74

Browse files
committedSep 26, 2022
8293567: AbstractSplittableWithBrineGenerator: salt has digits that duplicate the marker
Reviewed-by: jlaskey
1 parent 36b61c5 commit 968af74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/java.base/share/classes/jdk/internal/util/random/RandomSupport.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2399,7 +2399,7 @@ Spliterator<SplittableGenerator> makeSplitsSpliterator(long index, long fence, S
23992399
long multiplier = (1L << SALT_SHIFT) - 1;
24002400
long salt = multiplier << (64 - SALT_SHIFT);
24012401
while ((salt & multiplier) == 0) {
2402-
long digit = Math.multiplyHigh(bits, multiplier);
2402+
long digit = Math.unsignedMultiplyHigh(bits, multiplier);
24032403
salt = (salt >>> SALT_SHIFT) | (digit << (64 - SALT_SHIFT));
24042404
bits *= multiplier;
24052405
}

0 commit comments

Comments
 (0)
Please sign in to comment.