Reverting commit 581b474f4b194731eb9cb22cdde7330a1ec81c3b as per Gilles request.

The work on revamping the random packages is perfoemd in the random-ravamp 
branch.


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

Branch: refs/heads/master
Commit: 32280b862c77e64fcd104da16bd1b588026c0be6
Parents: 794dda1
Author: Luc Maisonobe <l...@apache.org>
Authored: Sun Jan 17 11:35:25 2016 +0100
Committer: Luc Maisonobe <l...@apache.org>
Committed: Sun Jan 17 11:40:27 2016 +0100

----------------------------------------------------------------------
 .../commons/math4/random/AbstractWell.java      | 34 ++++++--------------
 1 file changed, 9 insertions(+), 25 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/32280b86/src/main/java/org/apache/commons/math4/random/AbstractWell.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/math4/random/AbstractWell.java 
b/src/main/java/org/apache/commons/math4/random/AbstractWell.java
index 88cb2bb..b2d61a3 100644
--- a/src/main/java/org/apache/commons/math4/random/AbstractWell.java
+++ b/src/main/java/org/apache/commons/math4/random/AbstractWell.java
@@ -79,7 +79,7 @@ public abstract class AbstractWell
         index = 0;
 
         // Initialize the pool content.
-        setSeedInternal(seed);
+        setSeed(seed);
     }
 
     /**
@@ -92,25 +92,6 @@ public abstract class AbstractWell
         this(k, new int[] { (int) (seed >>> 32), (int) (seed & 0xffffffffl) });
     }
 
-
-    /** {@inheritDoc} */
-    @Override
-    public void setSeed(int seed) {
-        setSeedInternal(seed);
-    }
-
-    /** {@inheritDoc} */
-    @Override
-    public void setSeed(int[] seed) {
-        setSeedInternal(seed);
-    }
-
-    /** {@inheritDoc} */
-    @Override
-    public void setSeed(long seed) {
-        setSeedInternal(seed);
-    }
-
     /**
      * Reinitialize the generator as if just built with the given int seed.
      *
@@ -119,8 +100,9 @@ public abstract class AbstractWell
      *
      * @param seed Seed (32 bits integer).
      */
-    private void setSeedInternal(final int seed) {
-        setSeedInternal(new int[] { seed });
+    @Override
+    public void setSeed(final int seed) {
+        setSeed(new int[] { seed });
     }
 
     /**
@@ -132,7 +114,8 @@ public abstract class AbstractWell
      * @param seed Seed (32 bits integers array). If null the seed of the 
generator
      * will be the system time plus the system identity hash code of the 
instance.
      */
-    private void setSeedInternal(final int[] seed) {
+    @Override
+    public void setSeed(final int[] seed) {
         if (seed == null) {
             setSeed(System.currentTimeMillis() + 
System.identityHashCode(this));
             return;
@@ -159,8 +142,9 @@ public abstract class AbstractWell
      *
      * @param seed Seed (64 bits integer).
      */
-    private void setSeedInternal(final long seed) {
-        setSeedInternal(new int[] { (int) (seed >>> 32), (int) (seed & 
0xffffffffl) });
+    @Override
+    public void setSeed(final long seed) {
+        setSeed(new int[] { (int) (seed >>> 32), (int) (seed & 0xffffffffl) });
     }
 
     /**

Reply via email to