Use a generator with a low overhead.

Thanks to Alex Herbert.
This commit is contained in:
Gilles Sadowski 2019-10-22 17:49:16 +02:00
parent c7973fe10a
commit 3fc25204b5
1 changed files with 1 additions and 1 deletions

View File

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