diff --git a/src/java.base/share/classes/java/util/random/package-info.java b/src/java.base/share/classes/java/util/random/package-info.java index ec5f682262e..8efaa0bd4c3 100644 --- a/src/java.base/share/classes/java/util/random/package-info.java +++ b/src/java.base/share/classes/java/util/random/package-info.java @@ -223,7 +223,7 @@ * lifetime of a particular Java SE release. Changing the deprecation status of * an algorithm is not a specification change. * - *
| L128X1024MixRandom | + *L128X1024MixRandom | *LXM | *BigInteger.ONE.shiftLeft(1024).subtract(BigInteger.ONE).shiftLeft(128) | *1152 | *1 | *|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| L128X128MixRandom | + *L128X128MixRandom | *LXM | *BigInteger.ONE.shiftLeft(128).subtract(BigInteger.ONE).shiftLeft(128) | *256 | *1 | *|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| L128X256MixRandom | + *L128X256MixRandom | *LXM | *BigInteger.ONE.shiftLeft(256).subtract(BigInteger.ONE).shiftLeft(128) | *384 | *1 | *|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| L32X64MixRandom | + *L32X64MixRandom | *LXM | *BigInteger.ONE.shiftLeft(64).subtract(BigInteger.ONE).shiftLeft(32) | *96 | *1 | *|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| L64X1024MixRandom | + *L64X1024MixRandom | *LXM | *BigInteger.ONE.shiftLeft(1024).subtract(BigInteger.ONE).shiftLeft(64) | *1088 | *16 | *|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| L64X128MixRandom | + *L64X128MixRandom | *LXM | *BigInteger.ONE.shiftLeft(128).subtract(BigInteger.ONE).shiftLeft(64) | *192 | *2 | *|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| L64X128StarStarRandom | + *L64X128StarStarRandom | *LXM | *BigInteger.ONE.shiftLeft(128).subtract(BigInteger.ONE).shiftLeft(64) | *192 | *2 | *|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| L64X256MixRandom | + *L64X256MixRandom | *LXM | *BigInteger.ONE.shiftLeft(256).subtract(BigInteger.ONE).shiftLeft(64) | *320 | *4 | *|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Random | + *Random | *Legacy | *BigInteger.ONE.shiftLeft(48) | *48 | *0 | *|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| SplittableRandom | + *SplittableRandom | *Legacy | *BigInteger.ONE.shiftLeft(64) | *64 | *1 | *|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ThreadLocalRandom * | + *ThreadLocalRandom * | *Legacy | *BigInteger.ONE.shiftLeft(64) | *64 | *1 | *|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Xoroshiro128PlusPlus | + *Xoroshiro128PlusPlus | *Xoroshiro | *BigInteger.ONE.shiftLeft(128).subtract(BigInteger.ONE) | *128 | *1 | *|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Xoshiro256PlusPlus | + *Xoshiro256PlusPlus | *Xoshiro | *BigInteger.ONE.shiftLeft(256).subtract(BigInteger.ONE) | *256 | @@ -466,7 +466,7 @@ * 1-bit), and equidistribution property for each of the specific LXM algorithms * used in this package. * - *
| Implementation | @@ -476,42 +476,42 @@ *{@link RandomGenerator#nextLong nextLong()} values are | |||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| "L32X64MixRandom" | + *||||||||||||||||||||||||||||||||||||||||||||||||||||
| "L32X64MixRandom" | *232(264−1) | *96 bits | *32 bits | *|||||||||||||||||||||||||||||||||||||||||||||||||
| "L64X128StarStarRandom" | + *||||||||||||||||||||||||||||||||||||||||||||||||||||
| "L64X128StarStarRandom" | *264(2128−1) | *192 bits | *64 bits | *2-equidistributed and exactly equidistributed | ||||||||||||||||||||||||||||||||||||||||||||||||
| "L64X128MixRandom" | + *||||||||||||||||||||||||||||||||||||||||||||||||||||
| "L64X128MixRandom" | *264(2128−1) | *192 bits | *64 bits | *2-equidistributed and exactly equidistributed | ||||||||||||||||||||||||||||||||||||||||||||||||
| "L64X256MixRandom" | + *||||||||||||||||||||||||||||||||||||||||||||||||||||
| "L64X256MixRandom" | *264(2256−1) | *320 bits | *64 bits | *4-equidistributed and exactly equidistributed | ||||||||||||||||||||||||||||||||||||||||||||||||
| "L64X1024MixRandom" | + *||||||||||||||||||||||||||||||||||||||||||||||||||||
| "L64X1024MixRandom" | *264(21024−1) | *1088 bits | *64 bits | *16-equidistributed and exactly equidistributed | ||||||||||||||||||||||||||||||||||||||||||||||||
| "L128X128MixRandom" | + *||||||||||||||||||||||||||||||||||||||||||||||||||||
| "L128X128MixRandom" | *2128(2128−1) | *256 bits | *128 bits | *exactly equidistributed | ||||||||||||||||||||||||||||||||||||||||||||||||
| "L128X256MixRandom" | + *||||||||||||||||||||||||||||||||||||||||||||||||||||
| "L128X256MixRandom" | *2128(2256−1) | *384 bits | *128 bits | *exactly equidistributed | ||||||||||||||||||||||||||||||||||||||||||||||||
| "L128X1024MixRandom" | + *||||||||||||||||||||||||||||||||||||||||||||||||||||
| "L128X1024MixRandom" | *2128(21024−1) | *1152 bits | *128 bits | @@ -575,7 +575,7 @@ * missing 1-bit is handled through special coding of the multiply-add algorithm * used in the LCG.) * - *
| Implementation | @@ -585,42 +585,42 @@ *Mixing function | |||
|---|---|---|---|---|
| "L32X64MixRandom" | + *||||
| "L32X64MixRandom" | *{@code 0xadb4a92d} | *{@code xoroshiro64}, version 1.0 | *{@code (26, 9, 13)} | *mixLea32{@code (s+x0)} |
| "L64X128StarStarRandom" | + *||||
| "L64X128StarStarRandom" | *{@code 0xd1342543de82ef95L} | *{@code xoroshiro128}, version 1.0 | *{@code (24, 16, 37)} | *{@code Long.rotateLeft((s+x0)* 5, 7) * 9} |
| "L64X128MixRandom" | + *||||
| "L64X128MixRandom" | *{@code 0xd1342543de82ef95L} | *{@code xoroshiro128}, version 1.0 | *{@code (24, 16, 37)} | *mixLea64{@code (s+x0)} |
| "L64X256MixRandom" | + *||||
| "L64X256MixRandom" | *{@code 0xd1342543de82ef95L} | *{@code xoshiro256}, version 1.0 | *{@code (17, 45)} | *mixLea64{@code (s+x0)} |
| "L64X1024MixRandom" | + *||||
| "L64X1024MixRandom" | *{@code 0xd1342543de82ef95L} | *{@code xoroshiro1024}, version 1.0 | *{@code (25, 27, 36)} | *mixLea64{@code (s+x0)} |
| "L128X128MixRandom" | + *||||
| "L128X128MixRandom" | *{@code 0x1d605bbb58c8abbfdL} | *{@code xoroshiro128}, version 1.0 | *{@code (24, 16, 37)} | *mixLea64{@code (sh+x0)} |
| "L128X256MixRandom" | + *||||
| "L128X256MixRandom" | *{@code 0x1d605bbb58c8abbfdL} | *{@code xoshiro256}, version 1.0 | *{@code (17, 45)} | *mixLea64{@code (sh+x0)} |
| "L128X1024MixRandom" | + *||||
| "L128X1024MixRandom" | *{@code 0x1d605bbb58c8abbfdL} | *{@code xoroshiro1024}, version 1.0 | *{@code (25, 27, 36)} |