Uses of Class
io.github.pr0methean.betterrandom.prng.BaseRandom
-
Packages that use BaseRandom 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. -
-
Uses of BaseRandom in io.github.pr0methean.betterrandom.prng
Subclasses of BaseRandom in io.github.pr0methean.betterrandom.prng Modifier and Type Class Description classAesCounterRandomCipherCounterRandom using AES (Rijndael).classCipherCounterRandomNon-linear random number generator based on a cipher that encrypts an incrementing counter.classCmwc4096RandomA Java version of George Marsaglia's Complementary Multiply With Carry (CMWC) RNG.classMersenneTwisterRandomRandom number generator based on the Mersenne Twister algorithm developed by Makoto Matsumoto and Takuji Nishimura.classPcg128RandomFrom the original description, "PCG is a family of simple fast space-efficient statistically good algorithms for random number generation.classPcg64RandomFrom the original description, "PCG is a family of simple fast space-efficient statistically good algorithms for random number generation.classXorShiftRandomVery fast pseudo random number generator. -
Uses of BaseRandom in io.github.pr0methean.betterrandom.prng.adapter
Subclasses of BaseRandom in io.github.pr0methean.betterrandom.prng.adapter Modifier and Type Class Description classBaseSplittableRandomAdapterAbstract class for implementations ofBaseRandomthat wrap one or moreSplittableRandominstances.classDirectSplittableRandomAdapterAbstract subclass ofBaseSplittableRandomAdapterwhereDirectSplittableRandomAdapter.setSeed(long)andsetSeed(byte[])replace theSplittableRandomthat's used in the context in which they are called.classEntropyBlockingRandomWrapperARandomWrapperwith the additional property that it won't return any output that would take its entropy below a minimum amount, and will instead either wait to be reseeded by aSimpleRandomSeederor, if none is installed, reseed itself on the calling thread with aSeedGenerator.classEntropyBlockingSplittableRandomAdapterASplittableRandomAdapterthat blocks waiting to be reseeded if its entropy drops too low.classRandomWrapperclassReseedingThreadLocalRandomWrapperAThreadLocalRandomWrapperthat reseeds all its instances using aSimpleRandomSeeder.classSingleThreadSplittableRandomAdapterSimple, non-thread-safe implementation ofBaseRandomthat wraps aSplittableRandom.classSplittableRandomAdapterThread-safe PRNG that wraps aThreadLocal<SplittableRandom>.classThreadLocalRandomWrapperWraps aThreadLocal<BaseRandom> in order to provide concurrency that most implementations ofBaseRandomcan't implement naturally.Fields in io.github.pr0methean.betterrandom.prng.adapter with type parameters of type BaseRandom Modifier and Type Field Description protected ThreadLocal<? extends BaseRandom>SplittableRandomAdapter. threadLocalA thread-local delegate.protected ThreadLocal<BaseRandom>ThreadLocalRandomWrapper. threadLocalHolds the delegate for each thread.Methods in io.github.pr0methean.betterrandom.prng.adapter that return BaseRandom Modifier and Type Method Description protected BaseRandomEntropyBlockingSplittableRandomAdapter. createDelegate()protected BaseRandomSplittableRandomAdapter. createDelegate()Creates the delegate for the calling thread.BaseRandomThreadLocalRandomWrapper. getWrapped()Methods in io.github.pr0methean.betterrandom.prng.adapter that return types with arguments of type BaseRandom Modifier and Type Method Description protected static java8.util.function.Function<byte[],BaseRandom>ThreadLocalRandomWrapper. wrapLongCreatorAsByteArrayCreator(java8.util.function.LongFunction<Random> legacyCreator)Constructor parameters in io.github.pr0methean.betterrandom.prng.adapter with type arguments of type BaseRandom Constructor Description ReseedingThreadLocalRandomWrapper(int seedSize, SeedGenerator seedGenerator, java8.util.function.Function<byte[],? extends BaseRandom> creator)Wraps a seed generator and a function that takes a seed byte array as input.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(SeedGenerator seedGenerator, java8.util.function.Supplier<? extends BaseRandom> initializer)Wraps the givenSupplier.ReseedingThreadLocalRandomWrapper(java8.util.function.Supplier<? extends BaseRandom> initializer, SimpleRandomSeeder randomSeederThread)Wraps the givenSupplier.ThreadLocalRandomWrapper(int seedSize, SeedGenerator seedGenerator, java8.util.function.Function<byte[],? extends BaseRandom> creator)Wraps a seed generator and a function that takes a seed byte array as input.ThreadLocalRandomWrapper(java8.util.function.Supplier<? extends BaseRandom> initializer)Wraps the givenSupplier.
-