commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject [math] Use a fixed seed to avoid random test failure.
Date Mon, 02 Nov 2015 12:40:52 GMT
Repository: commons-math
Updated Branches:
  refs/heads/MATH_3_X 2f782bc25 -> 635c35be7


Use a fixed seed to avoid random test failure.

Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/635c35be
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/635c35be
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/635c35be

Branch: refs/heads/MATH_3_X
Commit: 635c35be7446c55740765bb67b8bfa21f1c93de5
Parents: 2f782bc
Author: Luc Maisonobe <luc@apache.org>
Authored: Mon Nov 2 13:39:21 2015 +0100
Committer: Luc Maisonobe <luc@apache.org>
Committed: Mon Nov 2 13:39:21 2015 +0100

----------------------------------------------------------------------
 .../commons/math3/random/CorrelatedRandomVectorGeneratorTest.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/635c35be/src/test/java/org/apache/commons/math3/random/CorrelatedRandomVectorGeneratorTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/random/CorrelatedRandomVectorGeneratorTest.java
b/src/test/java/org/apache/commons/math3/random/CorrelatedRandomVectorGeneratorTest.java
index 0496e98..f4d5882 100644
--- a/src/test/java/org/apache/commons/math3/random/CorrelatedRandomVectorGeneratorTest.java
+++ b/src/test/java/org/apache/commons/math3/random/CorrelatedRandomVectorGeneratorTest.java
@@ -177,7 +177,7 @@ public class CorrelatedRandomVectorGeneratorTest {
                 new double[cov.length],
                 matrix,
                 small,
-                new GaussianRandomGenerator(new JDKRandomGenerator()));
+                new GaussianRandomGenerator(new Well1024a(0x366a26b94e520f41l)));
     }
 
     private void testSampler(final double[][] covMatrix, int samples, double epsilon) {


Mime
View raw message