commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1363612 - in /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution: AbstractIntegerDistribution.java AbstractRealDistribution.java
Date Fri, 20 Jul 2012 01:12:09 GMT
Author: erans
Date: Fri Jul 20 01:12:08 2012
New Revision: 1363612

URL: http://svn.apache.org/viewvc?rev=1363612&view=rev
Log:
MATH-764
MATH-823
Recovered backward-compatible functionality (removed in r1363604) for
deprecated field.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution/AbstractIntegerDistribution.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution/AbstractRealDistribution.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution/AbstractIntegerDistribution.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution/AbstractIntegerDistribution.java?rev=1363612&r1=1363611&r2=1363612&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution/AbstractIntegerDistribution.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution/AbstractIntegerDistribution.java
Fri Jul 20 01:12:08 2012
@@ -171,6 +171,7 @@ implements IntegerDistribution, Serializ
     /** {@inheritDoc} */
     public void reseedRandomGenerator(long seed) {
         random.setSeed(seed);
+        randomData.reSeed(seed);
     }
 
     /**

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution/AbstractRealDistribution.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution/AbstractRealDistribution.java?rev=1363612&r1=1363611&r2=1363612&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution/AbstractRealDistribution.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/distribution/AbstractRealDistribution.java
Fri Jul 20 01:12:08 2012
@@ -212,6 +212,7 @@ implements RealDistribution, Serializabl
     /** {@inheritDoc} */
     public void reseedRandomGenerator(long seed) {
         random.setSeed(seed);
+        randomData.reSeed(seed);
     }
 
     /**



Mime
View raw message