Uses of Class
io.github.pr0methean.betterrandom.prng.adapter.RandomWrapper
-
Packages that use RandomWrapper Package Description 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. -
-
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 class
EntropyBlockingRandomWrapper<T extends Random>
ARandomWrapper
with 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 aRandomSeeder
or, if none is installed, reseed itself on the calling thread with aSeedGenerator
.class
ReseedingThreadLocalRandomWrapper<T extends BaseRandom>
AThreadLocalRandomWrapper
that reseeds all its instances using aRandomSeeder
.class
ThreadLocalRandomWrapper<T extends BaseRandom>
Wraps aThreadLocal
<BaseRandom
> in order to provide concurrency that most implementations ofBaseRandom
can'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 basicSecureRandom
with a given seed.
-