Uses of Class
io.github.pr0methean.betterrandom.seed.RandomSeeder
-
Packages that use RandomSeeder 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 RandomSeeder in io.github.pr0methean.betterrandom.prng
Fields in io.github.pr0methean.betterrandom.prng with type parameters of type RandomSeeder Modifier and Type Field Description protected AtomicReference<RandomSeeder>
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 RandomSeeder Modifier and Type Method Description RandomSeeder
BaseRandom. getRandomSeeder()
Returns the current seed generator for this PRNG.Methods in io.github.pr0methean.betterrandom.prng with parameters of type RandomSeeder Modifier and Type Method Description void
BaseRandom. setRandomSeeder(RandomSeeder randomSeeder)
Registers this PRNG with theRandomSeeder
for the correspondingSeedGenerator
, to schedule reseeding when we run out of entropy. -
Uses of RandomSeeder in io.github.pr0methean.betterrandom.prng.adapter
Methods in io.github.pr0methean.betterrandom.prng.adapter that return RandomSeeder Modifier and Type Method Description RandomSeeder
ReseedingThreadLocalRandomWrapper. getRandomSeeder()
RandomSeeder
ThreadLocalRandomWrapper. getRandomSeeder()
Methods in io.github.pr0methean.betterrandom.prng.adapter with parameters of type RandomSeeder Modifier and Type Method Description void
EntropyBlockingRandomWrapper. setRandomSeeder(RandomSeeder randomSeeder)
void
ReseedingThreadLocalRandomWrapper. setRandomSeeder(RandomSeeder randomSeeder)
void
SplittableRandomAdapter. setRandomSeeder(RandomSeeder randomSeeder)
void
ThreadLocalRandomWrapper. setRandomSeeder(RandomSeeder randomSeeder)
Not supported, because this class uses a thread-local seed.Constructors in io.github.pr0methean.betterrandom.prng.adapter with parameters of type RandomSeeder Constructor Description EntropyBlockingSplittableRandomAdapter(RandomSeeder randomSeeder, long minimumEntropy)
Creates an instance.EntropyBlockingSplittableRandomAdapter(SeedGenerator seedGenerator, RandomSeeder randomSeeder, long minimumEntropy)
Creates an instance.ReseedingThreadLocalRandomWrapper(SerializableSupplier<? extends T> initializer, RandomSeeder randomSeederThread)
Wraps the givenSerializableSupplier
.SplittableRandomAdapter(SeedGenerator seedGenerator, RandomSeeder randomSeeder)
Creates an instance. -
Uses of RandomSeeder in io.github.pr0methean.betterrandom.seed
Subclasses of RandomSeeder in io.github.pr0methean.betterrandom.seed Modifier and Type Class Description class
LegacyRandomSeeder
ARandomSeeder
that can reseed any instance ofRandom
.
-