From e280c8636792c5426e54868d464c9d28287a98fb Mon Sep 17 00:00:00 2001 From: Gilles Date: Thu, 2 Mar 2017 15:02:15 +0100 Subject: [PATCH] Use a faster RNG. --- .../commons/math4/stat/inference/KolmogorovSmirnovTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/math4/stat/inference/KolmogorovSmirnovTest.java b/src/main/java/org/apache/commons/math4/stat/inference/KolmogorovSmirnovTest.java index def4f043b..09999ea1e 100644 --- a/src/main/java/org/apache/commons/math4/stat/inference/KolmogorovSmirnovTest.java +++ b/src/main/java/org/apache/commons/math4/stat/inference/KolmogorovSmirnovTest.java @@ -1155,7 +1155,7 @@ public class KolmogorovSmirnovTest { // Add jitter using a fixed seed (so same arguments always give same results), // low-initialization-overhead generator. - UniformRandomProvider rng = RandomSource.create(RandomSource.JDK, 100); + final UniformRandomProvider rng = RandomSource.create(RandomSource.TWO_CMRES, 654321); // It is theoretically possible that jitter does not break ties, so repeat // until all ties are gone. Bound the loop and throw MIE if bound is exceeded.