Home
last modified time | relevance | path

Searched refs:RandomSupport (Results 1 – 20 of 20) sorted by relevance

/libcore/ojluni/src/main/java/jdk/random/
DL64X1024MixRandom.java30 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 …]
DL128X1024MixRandom.java30 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 …]
DL64X256MixRandom.java30 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 …]
DL128X256MixRandom.java30 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 …]
DL64X128MixRandom.java30 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 …]
DL128X128MixRandom.java30 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 …]
DL32X64MixRandom.java30 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 …]
DL64X128StarStarRandom.java30 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 …]
DXoshiro256PlusPlus.java31 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 …]
DXoroshiro128PlusPlus.java31 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/
DRandomGenerator.java32 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 …]
DRandomGeneratorFactory.java46 import jdk.internal.util.random.RandomSupport.RandomGeneratorProperties;
/libcore/ojluni/src/main/java/jdk/internal/util/random/
DRandomSupport.java55 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/
DThreadLocalRandom.java53 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/
DSplittableRandom.java35 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());
DRandom.java39 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/
DRandomGeneratorFactoryTest.java40 import jdk.internal.util.random.RandomSupport;
132 long seed = RandomSupport.initialSeed(); in checkConsistencyWithLongSeed()
/libcore/ojluni/src/main/java/java/security/
DSecureRandom.java36 import jdk.internal.util.random.RandomSupport.RandomGeneratorProperties;
/libcore/
Dopenjdk_java_files.bp1938 "ojluni/src/main/java/jdk/internal/util/random/RandomSupport.java",
DEXPECTED_UPSTREAM1434 …k/internal/util/random/RandomSupport.java,jdk17u/jdk-17.0.6-ga,src/java.base/share/classes/jdk/int…