Upgrade to "Commons RNG" (v1.2).

Seed had to be modified in class "KolmogorovSmirnovTest" for a unit test to pass.
This commit is contained in:
Gilles Sadowski 2019-10-22 13:49:45 +02:00
parent d0d4feaf27
commit f8c031ee38
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@
<math.clirr.version>2.8</math.clirr.version>
<math.mathjax.version>2.7.2</math.mathjax.version>
<math.commons.numbers.version>1.0-SNAPSHOT</math.commons.numbers.version>
<math.commons.rng.version>1.1</math.commons.rng.version>
<math.commons.rng.version>1.2</math.commons.rng.version>
<commons.site.path>math</commons.site.path>
<commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-math</commons.scmPubUrl>

View File

@ -1084,7 +1084,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, 7654321);
final UniformRandomProvider rng = RandomSource.create(RandomSource.TWO_CMRES, 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.