PERIOD in SplittableRandom JDK-8193209-branch
authorjlaskey
Fri, 28 Jun 2019 09:16:31 -0300
branchJDK-8193209-branch
changeset 57442 4b19f34bbe1b
parent 57437 f02ffcb61dce
child 57546 1ca1cfdcb451
PERIOD in SplittableRandom
src/java.base/share/classes/java/util/SplittableRandom.java
src/java.base/share/classes/java/util/random/AbstractSpliteratorRNG.java
--- a/src/java.base/share/classes/java/util/SplittableRandom.java	Thu Jun 27 18:30:27 2019 -0300
+++ b/src/java.base/share/classes/java/util/SplittableRandom.java	Fri Jun 28 09:16:31 2019 -0300
@@ -285,7 +285,10 @@
         return mix64(nextSeed());
     }
 
-    static final BigInteger thePeriod = BigInteger.ONE.shiftLeft(64);  // Period is 2**64
-    public BigInteger period() { return thePeriod; }
+    static final BigInteger PERIOD = BigInteger.ONE.shiftLeft(64);  // Period is 2**64
+
+    public BigInteger period() {
+        return PERIOD;
+    }
 
 }
--- a/src/java.base/share/classes/java/util/random/AbstractSpliteratorRNG.java	Thu Jun 27 18:30:27 2019 -0300
+++ b/src/java.base/share/classes/java/util/random/AbstractSpliteratorRNG.java	Fri Jun 28 09:16:31 2019 -0300
@@ -46,7 +46,7 @@
  * classes {@link AbstractSplittableRNG}, {@link AbstractSharedRNG},
  * and {@link AbstractArbitrarilyJumpableRNG}.
  *
- * @since   14
+ * @since 14
  */
 
 abstract class AbstractSpliteratorRNG implements RandomNumberGenerator {