Uses of Class
io.github.pr0methean.betterrandom.seed.SimpleRandomSeeder
-
Packages that use SimpleRandomSeeder Package Description io.github.pr0methean.betterrandom.prng Subclasses ofRandomusing different random-number generation algorithms.io.github.pr0methean.betterrandom.prng.adapter Implementations ofBaseRandomthat are backed by instances ofSplittableRandomorRandom, 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 forRandomimplementations, 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. randomSeederIf 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 SimpleRandomSeederBaseRandom. 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 voidBaseRandom. setRandomSeeder(SimpleRandomSeeder randomSeeder)Registers this PRNG with theSimpleRandomSeederfor 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 SimpleRandomSeederReseedingThreadLocalRandomWrapper. getRandomSeeder()SimpleRandomSeederThreadLocalRandomWrapper. getRandomSeeder()Methods in io.github.pr0methean.betterrandom.prng.adapter with parameters of type SimpleRandomSeeder Modifier and Type Method Description voidEntropyBlockingRandomWrapper. setRandomSeeder(SimpleRandomSeeder randomSeeder)voidReseedingThreadLocalRandomWrapper. setRandomSeeder(SimpleRandomSeeder randomSeeder)voidSplittableRandomAdapter. setRandomSeeder(SimpleRandomSeeder randomSeeder)voidThreadLocalRandomWrapper. 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 classLegacyRandomSeederASimpleRandomSeederthat can reseed any instance ofRandom.
-