From 1b5aef881bb3acdcde5d9fcbb6e43ceed6db145d Mon Sep 17 00:00:00 2001 From: Gilles Date: Thu, 12 May 2016 16:32:18 +0200 Subject: [PATCH] MATH-1335 Use new RNG API. --- .../math4/stat/descriptive/rank/PSquarePercentileTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/apache/commons/math4/stat/descriptive/rank/PSquarePercentileTest.java b/src/test/java/org/apache/commons/math4/stat/descriptive/rank/PSquarePercentileTest.java index 52cea3349..042e2fd01 100644 --- a/src/test/java/org/apache/commons/math4/stat/descriptive/rank/PSquarePercentileTest.java +++ b/src/test/java/org/apache/commons/math4/stat/descriptive/rank/PSquarePercentileTest.java @@ -31,8 +31,7 @@ import org.apache.commons.math4.distribution.AbstractRealDistribution; import org.apache.commons.math4.exception.MathIllegalArgumentException; import org.apache.commons.math4.exception.NullArgumentException; import org.apache.commons.math4.exception.OutOfRangeException; -import org.apache.commons.math4.random.RandomGenerator; -import org.apache.commons.math4.random.Well19937c; +import org.apache.commons.math4.rng.UniformRandomProvider; import org.apache.commons.math4.rng.RandomSource; import org.apache.commons.math4.stat.descriptive.StorelessUnivariateStatistic; import org.apache.commons.math4.stat.descriptive.StorelessUnivariateStatisticAbstractTest; @@ -55,7 +54,7 @@ public class PSquarePercentileTest extends protected double percentile95 = 16.72195;// 20.82d; this is approximation protected double tolerance = 10E-12; - private final RandomGenerator randomGenerator = new Well19937c(1000); + private final UniformRandomProvider randomGenerator = RandomSource.create(RandomSource.WELL_19937_C, 1000); @Override public double getTolerance() {