Uses of Class
io.github.pr0methean.betterrandom.prng.adapter.RandomWrapper
-
Packages that use RandomWrapper Package Description 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 RandomWrapper in io.github.pr0methean.betterrandom.prng.adapter
Subclasses of RandomWrapper in io.github.pr0methean.betterrandom.prng.adapter Modifier and Type Class Description classEntropyBlockingRandomWrapper<T extends Random>ARandomWrapperwith 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 aRandomSeederor, if none is installed, reseed itself on the calling thread with aSeedGenerator.classReseedingThreadLocalRandomWrapper<T extends BaseRandom>AThreadLocalRandomWrapperthat reseeds all its instances using aRandomSeeder.classThreadLocalRandomWrapper<T extends BaseRandom>Wraps aThreadLocal<BaseRandom> in order to provide concurrency that most implementations ofBaseRandomcan't implement naturally.Methods in io.github.pr0methean.betterrandom.prng.adapter that return RandomWrapper Modifier and Type Method Description static RandomWrapper<Random>RandomWrapper. wrapJavaUtilRandom(byte[] seed)Creates an instance wrapping a basicRandom.static RandomWrapper<Random>RandomWrapper. wrapJavaUtilRandom(long seed)Creates an instance wrapping a basicRandom.static RandomWrapper<Random>RandomWrapper. wrapJavaUtilRandom(SeedGenerator seedGenerator)Creates an instance wrapping a basicRandom.static RandomWrapper<SecureRandom>RandomWrapper. wrapSecureRandom(byte[] seed)Creates an instance wrapping a basicSecureRandomwith a given seed.
-