From 3fc25204b54257dfc96762250f3a5e0d07b61a58 Mon Sep 17 00:00:00 2001 From: Gilles Sadowski Date: Tue, 22 Oct 2019 17:49:16 +0200 Subject: [PATCH] Use a generator with a low overhead. Thanks to Alex Herbert. --- .../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 f9b0449fc..accc3d6ac 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 @@ -1085,7 +1085,7 @@ public class KolmogorovSmirnovTest { if (hasTies(x, y)) { // Add jitter using a fixed seed (so same arguments always give same results), // low-initialization-overhead generator. - final UniformRandomProvider rng = RandomSource.create(RandomSource.TWO_CMRES, 76543217); + final UniformRandomProvider rng = RandomSource.create(RandomSource.SPLIT_MIX_64, 76543217); // 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.