Serialized Form
-
Package io.github.pr0methean.betterrandom.prng
-
Class io.github.pr0methean.betterrandom.prng.AesCounterRandom extends CipherCounterRandom implements Serializable
- serialVersionUID:
- 4808258824475143174L
-
Class io.github.pr0methean.betterrandom.prng.BaseRandom extends Random implements Serializable
- serialVersionUID:
- -1556392727255964947L
-
Serialization Methods
-
readObject
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
readObjectNoData
private void readObjectNoData() throws InvalidObjectException
Do not attempt to deserialize any subclass that wasn't a subclass when serialized.- Throws:
InvalidObjectException
-
-
Serialized Fields
-
entropyBits
AtomicLong entropyBits
Stores the entropy estimate backingBaseRandom.getEntropyBits()
. -
lock
ReentrantLock lock
Lock to prevent concurrent modification of the RNG's internal state. -
nextNextGaussian
AtomicLong nextNextGaussian
-
randomSeeder
AtomicReference<SimpleRandomSeeder> 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. -
seed
byte[] seed
The seed this PRNG was seeded with, as a byte array. Used byBaseRandom.getSeed()
even if the actual internal state of the PRNG is stored elsewhere (since otherwise getSeed() would require a slow type conversion).
-
-
Class io.github.pr0methean.betterrandom.prng.CipherCounterRandom extends BaseRandom implements Serializable
- serialVersionUID:
- -7872636191973295031L
-
Serialized Fields
-
counter
byte[] counter
The counter. Successive values are encrypted to generate pseudorandom numbers. -
counterInput
byte[] counterInput
-
currentBlock
byte[] currentBlock
An array holding generated, encrypted bytes. -
index
int index
The offset inCipherCounterRandom.currentBlock
to draw output from. -
seeded
boolean seeded
-
-
Class io.github.pr0methean.betterrandom.prng.Cmwc4096Random extends BaseRandom implements Serializable
- serialVersionUID:
- 1731465909906078875L
-
Serialized Fields
-
carry
int carry
-
index
int index
-
state
int[] state
-
-
Class io.github.pr0methean.betterrandom.prng.MersenneTwisterRandom extends BaseRandom implements Serializable
- serialVersionUID:
- -4856906677508460512L
-
Serialized Fields
-
mt
int[] mt
-
mtIndex
int mtIndex
-
-
Class io.github.pr0methean.betterrandom.prng.Pcg128Random extends BaseRandom implements Serializable
- serialVersionUID:
- 3246991464669800351L
-
Serialized Fields
-
advancementLock
Lock advancementLock
-
-
Class io.github.pr0methean.betterrandom.prng.Pcg64Random extends BaseRandom implements Serializable
- serialVersionUID:
- 1677405697790847137L
-
Serialization Methods
-
writeObject
private void writeObject(ObjectOutputStream out) throws IOException
- Throws:
IOException
-
-
Serialized Fields
-
internal
AtomicLong internal
-
-
Class io.github.pr0methean.betterrandom.prng.XorShiftRandom extends BaseRandom implements Serializable
- serialVersionUID:
- 952521144304194886L
-
Serialized Fields
-
state1
int state1
-
state2
int state2
-
state3
int state3
-
state4
int state4
-
state5
int state5
-
-
-
Package io.github.pr0methean.betterrandom.prng.adapter
-
Class io.github.pr0methean.betterrandom.prng.adapter.BaseSplittableRandomAdapter extends BaseRandom implements Serializable
- serialVersionUID:
- 4273652147052638879L
-
Class io.github.pr0methean.betterrandom.prng.adapter.DirectSplittableRandomAdapter extends BaseSplittableRandomAdapter implements Serializable
- serialVersionUID:
- 4273652147052638879L
-
Serialization Methods
-
readObject
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
-
Class io.github.pr0methean.betterrandom.prng.adapter.EntropyBlockingRandomWrapper extends RandomWrapper implements Serializable
- serialVersionUID:
- -853699062122154479L
-
Serialized Fields
-
minimumEntropy
long minimumEntropy
-
sameThreadSeedGen
AtomicReference<SeedGenerator> sameThreadSeedGen
-
seedingStatusChanged
Condition seedingStatusChanged
-
-
Class io.github.pr0methean.betterrandom.prng.adapter.EntropyBlockingSplittableRandomAdapter extends SplittableRandomAdapter implements Serializable
- serialVersionUID:
- -779886405514766937L
-
Serialized Fields
-
minimumEntropy
long minimumEntropy
-
sameThreadSeedGen
AtomicReference<SeedGenerator> sameThreadSeedGen
-
-
Class io.github.pr0methean.betterrandom.prng.adapter.RandomWrapper extends BaseRandom implements Serializable
- serialVersionUID:
- -6526304552538799385L
-
Serialized Fields
-
unknownSeed
boolean unknownSeed
-
wrapped
Random wrapped
-
-
Class io.github.pr0methean.betterrandom.prng.adapter.ReseedingThreadLocalRandomWrapper extends ThreadLocalRandomWrapper implements Serializable
- serialVersionUID:
- -3235519018032714059L
-
Class io.github.pr0methean.betterrandom.prng.adapter.SingleThreadSplittableRandomAdapter extends DirectSplittableRandomAdapter implements Serializable
- serialVersionUID:
- -1125374167384636394L
-
Serialization Methods
-
readObject
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
-
Class io.github.pr0methean.betterrandom.prng.adapter.SplittableRandomAdapter extends BaseSplittableRandomAdapter implements Serializable
- serialVersionUID:
- 6301096404034224037L
-
Serialized Fields
-
seedGenerator
SeedGenerator seedGenerator
-
-
Class io.github.pr0methean.betterrandom.prng.adapter.ThreadLocalRandomWrapper extends RandomWrapper implements Serializable
- serialVersionUID:
- 1199235201518562359L
-
Serialization Methods
-
readObject
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
-
Serialized Fields
-
explicitSeedSize
Integer explicitSeedSize
-
initializer
java8.util.function.Supplier<? extends BaseRandom> initializer
-
-
-
Package io.github.pr0methean.betterrandom.seed
-
Class io.github.pr0methean.betterrandom.seed.BufferedSeedGenerator extends Object implements Serializable
- serialVersionUID:
- -2100305696539110970L
-
Serialization Methods
-
readObject
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
-
Serialized Fields
-
delegate
SeedGenerator delegate
-
lock
Lock lock
-
size
int size
-
-
Class io.github.pr0methean.betterrandom.seed.LegacyRandomSeeder extends SimpleRandomSeeder implements Serializable
-
Class io.github.pr0methean.betterrandom.seed.SecureRandomSeedGenerator extends Object implements Serializable
- serialVersionUID:
- 854226000048040387L
-
Serialization Methods
-
readResolve
protected Object readResolve()
-
-
Serialized Fields
-
isDefaultInstance
boolean isDefaultInstance
Used to preserve the identity of the default instance across serialization. -
source
SecureRandom source
TheSecureRandom
that generates the seeds.
-
-
Class io.github.pr0methean.betterrandom.seed.SeedException extends RuntimeException implements Serializable
- serialVersionUID:
- -6151013676983010168L
-
Class io.github.pr0methean.betterrandom.seed.SeedGeneratorPreferenceList extends CopyOnWriteArrayList<SeedGenerator> implements Serializable
- serialVersionUID:
- -4429919137592899776L
-
Serialized Fields
-
isAlwaysWorthTrying
boolean isAlwaysWorthTrying
-
-
Class io.github.pr0methean.betterrandom.seed.SimpleRandomSeeder extends Looper implements Serializable
- serialVersionUID:
- -4339570810679373476L
-
Serialization Methods
-
readObject
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
-
Serialized Fields
-
seedGenerator
SeedGenerator seedGenerator
The seed generator this seeder uses. -
stopIfEmptyForNanos
long stopIfEmptyForNanos
Time in nanoseconds after which this thread will terminate if no PRNGs are attached.
-
-
Class io.github.pr0methean.betterrandom.seed.SimpleRandomSeeder.DefaultThreadFactory extends Object implements Serializable
- serialVersionUID:
- -5806852086706570346L
-
Serialized Fields
-
name
String name
-
priority
int priority
-
-
-
Package io.github.pr0methean.betterrandom.util
-
Class io.github.pr0methean.betterrandom.util.Looper extends Object implements Serializable
- serialVersionUID:
- -4790652062170305318L
-
Serialization Methods
-
readObject
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
writeObject
private void writeObject(ObjectOutputStream out) throws IOException
- Throws:
IOException
-
-
Serialized Fields
-
everStarted
boolean everStarted
-
factory
ThreadFactory factory
TheThreadFactory
used to create (and, if necessary, replace) the thread. -
lock
Lock lock
The thread holds this lock whenever it is runningLooper.iterate()
. -
running
boolean running
-
threadLock
Lock threadLock
The looper holds this lock whenever it is reading or writing the state of the underlying thread (including replacing that thread).
-
-