From 521b9b3385d73239b96ab209cb34ceb5c1c1400a Mon Sep 17 00:00:00 2001 From: Gilles Date: Thu, 12 May 2016 15:18:13 +0200 Subject: [PATCH] MATH-1335 Use new RNG API. --- .../commons/math4/stat/regression/SimpleRegressionTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/math4/stat/regression/SimpleRegressionTest.java b/src/test/java/org/apache/commons/math4/stat/regression/SimpleRegressionTest.java index e37dda09c..bc9042933 100644 --- a/src/test/java/org/apache/commons/math4/stat/regression/SimpleRegressionTest.java +++ b/src/test/java/org/apache/commons/math4/stat/regression/SimpleRegressionTest.java @@ -20,7 +20,8 @@ import java.util.Random; import org.apache.commons.math4.exception.MathIllegalArgumentException; import org.apache.commons.math4.exception.OutOfRangeException; -import org.apache.commons.math4.random.ISAACRandom; +import org.apache.commons.math4.rng.UniformRandomProvider; +import org.apache.commons.math4.rng.RandomSource; import org.apache.commons.math4.stat.regression.ModelSpecificationException; import org.apache.commons.math4.stat.regression.RegressionResults; import org.apache.commons.math4.stat.regression.SimpleRegression; @@ -135,7 +136,7 @@ public final class SimpleRegressionTest { */ private void check(boolean includeIntercept) { final int sets = 2; - final ISAACRandom rand = new ISAACRandom(10L);// Seed can be changed + final UniformRandomProvider rand = RandomSource.create(RandomSource.ISAAC, 10L);// Seed can be changed final SimpleRegression whole = new SimpleRegression(includeIntercept);// regression of the whole set final SimpleRegression parts = new SimpleRegression(includeIntercept);// regression with parts.