Uses of Class
io.github.pr0methean.betterrandom.seed.SimpleRandomSeeder
-
Packages that use SimpleRandomSeeder Package Description io.github.pr0methean.betterrandom.prng Subclasses ofRandom
using different random-number generation algorithms.io.github.pr0methean.betterrandom.prng.adapter Implementations ofBaseRandom
that are backed by instances ofSplittableRandom
orRandom
, many of them wrapped inThreadLocal
<?>
to allow concurrent use of a shared instance by multiple threads.io.github.pr0methean.betterrandom.seed Tools to obtain and apply truly-random seeds forRandom
implementations, especially those that also implementByteArrayReseedableRandom
. -
-
Uses of SimpleRandomSeeder in io.github.pr0methean.betterrandom.prng
Fields in io.github.pr0methean.betterrandom.prng with type parameters of type SimpleRandomSeeder Modifier and Type Field Description protected AtomicReference<SimpleRandomSeeder>
BaseRandom. randomSeeder
If the referent is non-null, it will be invoked to reseed this PRNG whenever random output is taken andBaseRandom.getEntropyBits()
called immediately afterward would return zero or negative.Methods in io.github.pr0methean.betterrandom.prng that return SimpleRandomSeeder Modifier and Type Method Description SimpleRandomSeeder
BaseRandom. getRandomSeeder()
Returns the current seed generator for this PRNG.Methods in io.github.pr0methean.betterrandom.prng with parameters of type SimpleRandomSeeder Modifier and Type Method Description void
BaseRandom. setRandomSeeder(SimpleRandomSeeder randomSeeder)
Registers this PRNG with theSimpleRandomSeeder
for the correspondingSeedGenerator
, to schedule reseeding when we run out of entropy. -
Uses of SimpleRandomSeeder in io.github.pr0methean.betterrandom.prng.adapter
Methods in io.github.pr0methean.betterrandom.prng.adapter that return SimpleRandomSeeder Modifier and Type Method Description SimpleRandomSeeder
ReseedingThreadLocalRandomWrapper. getRandomSeeder()
SimpleRandomSeeder
ThreadLocalRandomWrapper. getRandomSeeder()
Methods in io.github.pr0methean.betterrandom.prng.adapter with parameters of type SimpleRandomSeeder Modifier and Type Method Description void
EntropyBlockingRandomWrapper. setRandomSeeder(SimpleRandomSeeder randomSeeder)
void
ReseedingThreadLocalRandomWrapper. setRandomSeeder(SimpleRandomSeeder randomSeeder)
void
SplittableRandomAdapter. setRandomSeeder(SimpleRandomSeeder randomSeeder)
void
ThreadLocalRandomWrapper. setRandomSeeder(SimpleRandomSeeder randomSeeder)
Not supported, because this class uses a thread-local seed.Constructors in io.github.pr0methean.betterrandom.prng.adapter with parameters of type SimpleRandomSeeder Constructor Description EntropyBlockingSplittableRandomAdapter(SeedGenerator seedGenerator, SimpleRandomSeeder randomSeeder, long minimumEntropy)
Creates an instance.EntropyBlockingSplittableRandomAdapter(SimpleRandomSeeder randomSeeder, long minimumEntropy)
Creates an instance.ReseedingThreadLocalRandomWrapper(int seedSize, SimpleRandomSeeder randomSeederThread, java8.util.function.Function<byte[],? extends BaseRandom> creator, SeedGenerator seedGenerator)
Wraps a seed generator and a function that takes a seed byte array as input.ReseedingThreadLocalRandomWrapper(java8.util.function.Supplier<? extends BaseRandom> initializer, SimpleRandomSeeder randomSeederThread)
Wraps the givenSupplier
.SplittableRandomAdapter(SeedGenerator seedGenerator, SimpleRandomSeeder randomSeeder)
Creates an instance. -
Uses of SimpleRandomSeeder in io.github.pr0methean.betterrandom.seed
Subclasses of SimpleRandomSeeder in io.github.pr0methean.betterrandom.seed Modifier and Type Class Description class
LegacyRandomSeeder
ASimpleRandomSeeder
that can reseed any instance ofRandom
.
-