Use a faster RNG.
Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/e280c863 Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/e280c863 Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/e280c863 Branch: refs/heads/master Commit: e280c8636792c5426e54868d464c9d28287a98fb Parents: bb7e895 Author: Gilles <[email protected]> Authored: Thu Mar 2 15:02:15 2017 +0100 Committer: Gilles <[email protected]> Committed: Thu Mar 2 15:02:15 2017 +0100 ---------------------------------------------------------------------- .../apache/commons/math4/stat/inference/KolmogorovSmirnovTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-math/blob/e280c863/src/main/java/org/apache/commons/math4/stat/inference/KolmogorovSmirnovTest.java ---------------------------------------------------------------------- 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 def4f04..09999ea 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.
