Use a faster RNG.

This commit is contained in:
Gilles 2017-03-02 15:02:15 +01:00
parent bb7e8951cb
commit e280c86367
1 changed files with 1 additions and 1 deletions

View File

@ -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.