You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2021/08/26 17:08:41 UTC
[commons-rng] 04/04: Change another mask operation to a bit shift.
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git
commit da1e812847ad935060003536008fb4eccf569a6f
Author: aherbert <ah...@apache.org>
AuthorDate: Thu Aug 26 18:05:34 2021 +0100
Change another mask operation to a bit shift.
---
.../examples/jmh/sampling/distribution/ZigguratSamplerPerformance.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/sampling/distribution/ZigguratSamplerPerformance.java b/commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/sampling/distribution/ZigguratSamplerPerformance.java
index 1eae717..55461e6 100644
--- a/commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/sampling/distribution/ZigguratSamplerPerformance.java
+++ b/commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/sampling/distribution/ZigguratSamplerPerformance.java
@@ -1656,7 +1656,7 @@ public class ZigguratSamplerPerformance {
break;
}
// uDiff < MAX_IE (upper-right triangle) or rejected as above the curve
- u1 = randomInt63();
+ u1 = nextLong() >>> 1;
}
} else if (j < J_INFLECTION) {
if (j == 0) {