Skip to content

Commit 081a7b6

Browse files
committed
Remove redundant 32-bit mask of long value before cast to int
1 parent 616cfae commit 081a7b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

commons-rng-core/src/main/java/org/apache/commons/rng/core/BaseProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ protected void fillState(int[] state,
185185

186186
if (seedSize < stateSize) {
187187
for (int i = seedSize; i < stateSize; i++) {
188-
state[i] = (int) (scrambleWell(state[i - seed.length], i) & 0xffffffffL);
188+
state[i] = (int) scrambleWell(state[i - seed.length], i);
189189
}
190190
}
191191
}

0 commit comments

Comments
 (0)