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/a3fae474 Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/a3fae474 Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/a3fae474 Branch: refs/heads/develop Commit: a3fae474e5cf5084c89835fce1950991aa678a41 Parents: f9f632e Author: Gilles <er...@apache.org> Authored: Thu May 12 12:43:20 2016 +0200 Committer: Gilles <er...@apache.org> Committed: Tue May 17 15:30:23 2016 +0200 ---------------------------------------------------------------------- .../org/apache/commons/math4/ode/events/EventFilterTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-math/blob/a3fae474/src/test/java/org/apache/commons/math4/ode/events/EventFilterTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/math4/ode/events/EventFilterTest.java b/src/test/java/org/apache/commons/math4/ode/events/EventFilterTest.java index c8ea085..41585bd 100644 --- a/src/test/java/org/apache/commons/math4/ode/events/EventFilterTest.java +++ b/src/test/java/org/apache/commons/math4/ode/events/EventFilterTest.java @@ -27,8 +27,8 @@ import org.apache.commons.math4.ode.events.EventFilter; import org.apache.commons.math4.ode.events.EventHandler; import org.apache.commons.math4.ode.events.FilterType; import org.apache.commons.math4.ode.nonstiff.DormandPrince853Integrator; -import org.apache.commons.math4.random.RandomGenerator; -import org.apache.commons.math4.random.Well19937a; +import org.apache.commons.math4.rng.UniformRandomProvider; +import org.apache.commons.math4.rng.RandomSource; import org.apache.commons.math4.util.FastMath; import org.junit.Assert; import org.junit.Test; @@ -118,7 +118,7 @@ public class EventFilterTest { } // verify old events are preserved, even if randomly accessed - RandomGenerator rng = new Well19937a(0xb0e7401265af8cd3l); + UniformRandomProvider rng = RandomSource.create(RandomSource.TWO_CMRES, 0xb0e7401265af8cd3l); for (int i = 0; i < 5000; i++) { double t = t0 + (t1 - t0) * rng.nextDouble(); double g = eventFilter.g(t, new double[] { FastMath.sin(t), FastMath.cos(t) });