MATH-1335 Use new RNG API.
Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/521b9b33 Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/521b9b33 Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/521b9b33 Branch: refs/heads/develop Commit: 521b9b3385d73239b96ab209cb34ceb5c1c1400a Parents: a9fdcd6 Author: Gilles <er...@apache.org> Authored: Thu May 12 15:18:13 2016 +0200 Committer: Gilles <er...@apache.org> Committed: Tue May 17 15:30:23 2016 +0200 ---------------------------------------------------------------------- .../commons/math4/stat/regression/SimpleRegressionTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-math/blob/521b9b33/src/test/java/org/apache/commons/math4/stat/regression/SimpleRegressionTest.java ---------------------------------------------------------------------- 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 e37dda0..bc90429 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.