/libcore/ojluni/src/main/java/jdk/random/ |
D | L64X1024MixRandom.java | 30 import jdk.internal.util.random.RandomSupport; 31 import jdk.internal.util.random.RandomSupport.AbstractSplittableWithBrineGenerator; 32 import jdk.internal.util.random.RandomSupport.RandomGeneratorProperties; 124 private static final AtomicLong defaultGen = new AtomicLong(RandomSupport.initialSeed()); 208 this.x[j] = RandomSupport.mixStafford13(v += RandomSupport.GOLDEN_RATIO_64); in L64X1024MixRandom() 231 this(RandomSupport.mixMurmur64(seed ^= RandomSupport.SILVER_RATIO_64), in L64X1024MixRandom() 233 RandomSupport.mixStafford13(seed), in L64X1024MixRandom() 234 RandomSupport.mixStafford13(seed += RandomSupport.GOLDEN_RATIO_64), in L64X1024MixRandom() 235 RandomSupport.mixStafford13(seed += RandomSupport.GOLDEN_RATIO_64), in L64X1024MixRandom() 236 RandomSupport.mixStafford13(seed += RandomSupport.GOLDEN_RATIO_64), in L64X1024MixRandom() [all …]
|
D | L128X1024MixRandom.java | 30 import jdk.internal.util.random.RandomSupport; 31 import jdk.internal.util.random.RandomSupport.AbstractSplittableWithBrineGenerator; 32 import jdk.internal.util.random.RandomSupport.RandomGeneratorProperties; 128 private static final AtomicLong defaultGen = new AtomicLong(RandomSupport.initialSeed()); 217 this.x[j] = RandomSupport.mixStafford13(v += RandomSupport.GOLDEN_RATIO_64); in L128X1024MixRandom() 240 this(RandomSupport.mixMurmur64(seed ^= RandomSupport.SILVER_RATIO_64), in L128X1024MixRandom() 241 RandomSupport.mixMurmur64(seed += RandomSupport.GOLDEN_RATIO_64), in L128X1024MixRandom() 244 RandomSupport.mixStafford13(seed), in L128X1024MixRandom() 245 RandomSupport.mixStafford13(seed += RandomSupport.GOLDEN_RATIO_64), in L128X1024MixRandom() 246 RandomSupport.mixStafford13(seed += RandomSupport.GOLDEN_RATIO_64), in L128X1024MixRandom() [all …]
|
D | L64X256MixRandom.java | 30 import jdk.internal.util.random.RandomSupport; 31 import jdk.internal.util.random.RandomSupport.AbstractSplittableWithBrineGenerator; 32 import jdk.internal.util.random.RandomSupport.RandomGeneratorProperties; 119 private static final AtomicLong defaultGen = new AtomicLong(RandomSupport.initialSeed()); 170 this.x0 = RandomSupport.mixStafford13(v += RandomSupport.GOLDEN_RATIO_64); in L64X256MixRandom() 171 this.x1 = RandomSupport.mixStafford13(v += RandomSupport.GOLDEN_RATIO_64); in L64X256MixRandom() 172 this.x2 = RandomSupport.mixStafford13(v += RandomSupport.GOLDEN_RATIO_64); in L64X256MixRandom() 173 this.x3 = RandomSupport.mixStafford13(v + RandomSupport.GOLDEN_RATIO_64); in L64X256MixRandom() 195 this(RandomSupport.mixMurmur64(seed ^= RandomSupport.SILVER_RATIO_64), in L64X256MixRandom() 197 RandomSupport.mixStafford13(seed), in L64X256MixRandom() [all …]
|
D | L128X256MixRandom.java | 30 import jdk.internal.util.random.RandomSupport; 31 import jdk.internal.util.random.RandomSupport.AbstractSplittableWithBrineGenerator; 32 import jdk.internal.util.random.RandomSupport.RandomGeneratorProperties; 122 private static final AtomicLong defaultGen = new AtomicLong(RandomSupport.initialSeed()); 183 this.x0 = RandomSupport.mixStafford13(v += RandomSupport.GOLDEN_RATIO_64); in L128X256MixRandom() 184 this.x1 = RandomSupport.mixStafford13(v += RandomSupport.GOLDEN_RATIO_64); in L128X256MixRandom() 185 this.x2 = RandomSupport.mixStafford13(v += RandomSupport.GOLDEN_RATIO_64); in L128X256MixRandom() 186 this.x3 = RandomSupport.mixStafford13(v + RandomSupport.GOLDEN_RATIO_64); in L128X256MixRandom() 208 this(RandomSupport.mixMurmur64(seed ^= RandomSupport.SILVER_RATIO_64), in L128X256MixRandom() 209 RandomSupport.mixMurmur64(seed += RandomSupport.GOLDEN_RATIO_64), in L128X256MixRandom() [all …]
|
D | L64X128MixRandom.java | 30 import jdk.internal.util.random.RandomSupport; 31 import jdk.internal.util.random.RandomSupport.AbstractSplittableWithBrineGenerator; 32 import jdk.internal.util.random.RandomSupport.RandomGeneratorProperties; 118 private static final AtomicLong defaultGen = new AtomicLong(RandomSupport.initialSeed()); 165 this.x0 = RandomSupport.mixStafford13(v += RandomSupport.GOLDEN_RATIO_64); in L64X128MixRandom() 166 this.x1 = RandomSupport.mixStafford13(v + RandomSupport.GOLDEN_RATIO_64); in L64X128MixRandom() 188 this(RandomSupport.mixMurmur64(seed ^= RandomSupport.SILVER_RATIO_64), in L64X128MixRandom() 190 RandomSupport.mixStafford13(seed), in L64X128MixRandom() 191 RandomSupport.mixStafford13(seed + RandomSupport.GOLDEN_RATIO_64)); in L64X128MixRandom() 202 this(defaultGen.getAndAdd(RandomSupport.GOLDEN_RATIO_64)); in L64X128MixRandom() [all …]
|
D | L128X128MixRandom.java | 30 import jdk.internal.util.random.RandomSupport; 31 import jdk.internal.util.random.RandomSupport.AbstractSplittableWithBrineGenerator; 32 import jdk.internal.util.random.RandomSupport.RandomGeneratorProperties; 118 private static final AtomicLong defaultGen = new AtomicLong(RandomSupport.initialSeed()); 170 this.x0 = RandomSupport.mixStafford13(v += RandomSupport.GOLDEN_RATIO_64); in L128X128MixRandom() 171 this.x1 = RandomSupport.mixStafford13(v + RandomSupport.GOLDEN_RATIO_64); in L128X128MixRandom() 193 this(RandomSupport.mixMurmur64(seed ^= RandomSupport.SILVER_RATIO_64), in L128X128MixRandom() 194 RandomSupport.mixMurmur64(seed += RandomSupport.GOLDEN_RATIO_64), in L128X128MixRandom() 197 RandomSupport.mixStafford13(seed), in L128X128MixRandom() 198 RandomSupport.mixStafford13(seed + RandomSupport.GOLDEN_RATIO_64)); in L128X128MixRandom() [all …]
|
D | L32X64MixRandom.java | 30 import jdk.internal.util.random.RandomSupport; 31 import jdk.internal.util.random.RandomSupport.AbstractSplittableWithBrineGenerator; 32 import jdk.internal.util.random.RandomSupport.RandomGeneratorProperties; 117 private static final AtomicLong defaultGen = new AtomicLong(RandomSupport.initialSeed()); 164 this.x0 = RandomSupport.mixMurmur32(v += RandomSupport.GOLDEN_RATIO_32); in L32X64MixRandom() 165 this.x1 = RandomSupport.mixMurmur32(v + RandomSupport.GOLDEN_RATIO_32); in L32X64MixRandom() 187 this(RandomSupport.mixMurmur32((int)((seed ^= RandomSupport.SILVER_RATIO_64) >>> 32)), in L32X64MixRandom() 189 RandomSupport.mixLea32((int)(seed)), in L32X64MixRandom() 190 RandomSupport.mixLea32((int)(seed) + RandomSupport.GOLDEN_RATIO_32)); in L32X64MixRandom() 201 this(defaultGen.getAndAdd(RandomSupport.GOLDEN_RATIO_64)); in L32X64MixRandom() [all …]
|
D | L64X128StarStarRandom.java | 30 import jdk.internal.util.random.RandomSupport; 31 import jdk.internal.util.random.RandomSupport.AbstractSplittableWithBrineGenerator; 32 import jdk.internal.util.random.RandomSupport.RandomGeneratorProperties; 118 private static final AtomicLong defaultGen = new AtomicLong(RandomSupport.initialSeed()); 165 this.x0 = RandomSupport.mixStafford13(v += RandomSupport.GOLDEN_RATIO_64); in L64X128StarStarRandom() 166 this.x1 = RandomSupport.mixStafford13(v + RandomSupport.GOLDEN_RATIO_64); in L64X128StarStarRandom() 188 this(RandomSupport.mixMurmur64(seed ^= RandomSupport.SILVER_RATIO_64), in L64X128StarStarRandom() 190 RandomSupport.mixStafford13(seed), in L64X128StarStarRandom() 191 RandomSupport.mixStafford13(seed + RandomSupport.GOLDEN_RATIO_64)); in L64X128StarStarRandom() 202 this(defaultGen.getAndAdd(RandomSupport.GOLDEN_RATIO_64)); in L64X128StarStarRandom() [all …]
|
D | Xoshiro256PlusPlus.java | 31 import jdk.internal.util.random.RandomSupport; 32 import jdk.internal.util.random.RandomSupport.RandomGeneratorProperties; 125 private static final AtomicLong DEFAULT_GEN = new AtomicLong(RandomSupport.initialSeed()); 155 this.x0 = RandomSupport.mixStafford13(x0 += RandomSupport.GOLDEN_RATIO_64); in Xoshiro256PlusPlus() 156 this.x1 = (x0 += RandomSupport.GOLDEN_RATIO_64); in Xoshiro256PlusPlus() 157 this.x2 = (x0 += RandomSupport.GOLDEN_RATIO_64); in Xoshiro256PlusPlus() 158 this.x3 = (x0 += RandomSupport.GOLDEN_RATIO_64); in Xoshiro256PlusPlus() 177 this(RandomSupport.mixStafford13(seed ^= RandomSupport.SILVER_RATIO_64), in Xoshiro256PlusPlus() 178 RandomSupport.mixStafford13(seed += RandomSupport.GOLDEN_RATIO_64), in Xoshiro256PlusPlus() 179 RandomSupport.mixStafford13(seed += RandomSupport.GOLDEN_RATIO_64), in Xoshiro256PlusPlus() [all …]
|
D | Xoroshiro128PlusPlus.java | 31 import jdk.internal.util.random.RandomSupport; 32 import jdk.internal.util.random.RandomSupport.RandomGeneratorProperties; 116 private static final AtomicLong defaultGen = new AtomicLong(RandomSupport.initialSeed()); 141 this.x0 = RandomSupport.GOLDEN_RATIO_64; in Xoroshiro128PlusPlus() 142 this.x1 = RandomSupport.SILVER_RATIO_64; in Xoroshiro128PlusPlus() 161 this(RandomSupport.mixStafford13(seed ^= RandomSupport.SILVER_RATIO_64), in Xoroshiro128PlusPlus() 162 RandomSupport.mixStafford13(seed + RandomSupport.GOLDEN_RATIO_64)); in Xoroshiro128PlusPlus() 173 this(defaultGen.getAndAdd(RandomSupport.GOLDEN_RATIO_64)); in Xoroshiro128PlusPlus() 185 long[] data = RandomSupport.convertSeedBytesToLongs(seed, 2, 2); in Xoroshiro128PlusPlus()
|
/libcore/ojluni/src/main/java/java/util/random/ |
D | RandomGenerator.java | 32 import jdk.internal.util.random.RandomSupport; 33 import jdk.internal.util.random.RandomSupport.*; 200 RandomSupport.checkRange(randomNumberOrigin, randomNumberBound); in doubles() 220 RandomSupport.checkStreamSize(streamSize); in doubles() 248 RandomSupport.checkStreamSize(streamSize); in doubles() 249 RandomSupport.checkRange(randomNumberOrigin, randomNumberBound); in doubles() 293 RandomSupport.checkRange(randomNumberOrigin, randomNumberBound); in ints() 313 RandomSupport.checkStreamSize(streamSize); in ints() 339 RandomSupport.checkStreamSize(streamSize); in ints() 340 RandomSupport.checkRange(randomNumberOrigin, randomNumberBound); in ints() [all …]
|
D | RandomGeneratorFactory.java | 46 import jdk.internal.util.random.RandomSupport.RandomGeneratorProperties;
|
/libcore/ojluni/src/main/java/jdk/internal/util/random/ |
D | RandomSupport.java | 55 public class RandomSupport { class 122 protected RandomSupport() { in RandomSupport() method in RandomSupport 953 public static class RandomIntsSpliterator extends RandomSupport.RandomSpliterator 987 consumer.accept(RandomSupport.boundedNextInt(generatingGenerator, origin, bound)); in tryAdvance() 1002 consumer.accept(RandomSupport.boundedNextInt(r, o, b)); in forEachRemaining() 1011 public static class RandomLongsSpliterator extends RandomSupport.RandomSpliterator 1045 consumer.accept(RandomSupport.boundedNextLong(generatingGenerator, origin, bound)); in tryAdvance() 1060 consumer.accept(RandomSupport.boundedNextLong(r, o, b)); in forEachRemaining() 1069 public static class RandomDoublesSpliterator extends RandomSupport.RandomSpliterator 1103 … consumer.accept(RandomSupport.boundedNextDouble(generatingGenerator, origin, bound)); in tryAdvance() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ThreadLocalRandom.java | 53 import jdk.internal.util.random.RandomSupport; 54 import jdk.internal.util.random.RandomSupport.*; 172 long seed = RandomSupport.mixMurmur64(seeder.getAndAdd(SEEDER_INCREMENT)); in localInit() 399 = new AtomicLong(RandomSupport.mixMurmur64(System.currentTimeMillis()) ^ 400 RandomSupport.mixMurmur64(System.nanoTime())); 466 return RandomSupport.mixMurmur64(nextSeed()); in nextLong()
|
/libcore/ojluni/src/main/java/java/util/ |
D | SplittableRandom.java | 35 import jdk.internal.util.random.RandomSupport; 36 import jdk.internal.util.random.RandomSupport.AbstractSplittableGenerator; 37 import jdk.internal.util.random.RandomSupport.RandomGeneratorProperties; 256 private static final AtomicLong defaultGen = new AtomicLong(RandomSupport.initialSeed());
|
D | Random.java | 39 import jdk.internal.util.random.RandomSupport; 44 import static jdk.internal.util.random.RandomSupport.*; 733 RandomSupport.checkStreamSize(streamSize); in ints() 734 RandomSupport.checkRange(randomNumberOrigin, randomNumberBound); in ints() 783 RandomSupport.checkRange(randomNumberOrigin, randomNumberBound); in ints()
|
/libcore/luni/src/test/java/libcore/java/util/random/ |
D | RandomGeneratorFactoryTest.java | 40 import jdk.internal.util.random.RandomSupport; 132 long seed = RandomSupport.initialSeed(); in checkConsistencyWithLongSeed()
|
/libcore/ojluni/src/main/java/java/security/ |
D | SecureRandom.java | 36 import jdk.internal.util.random.RandomSupport.RandomGeneratorProperties;
|
/libcore/ |
D | openjdk_java_files.bp | 1938 "ojluni/src/main/java/jdk/internal/util/random/RandomSupport.java",
|
D | EXPECTED_UPSTREAM | 1434 …k/internal/util/random/RandomSupport.java,jdk17u/jdk-17.0.6-ga,src/java.base/share/classes/jdk/int…
|