public class AsyncFortunaStandalone extends FortunaStandalone implements Runnable
generator, lastReseed, MIN_POOL_SIZE, NUM_POOLS, pool0Count, pools, reseedCount, SEEDbuffer, initialised, name, ndx| Constructor and Description |
|---|
AsyncFortunaStandalone(I2PAppContext context)Create a new AsyncFortunaStandalone. |
| Modifier and Type | Method and Description |
|---|---|
Object | clone()Return a copy of this object. |
void | fillBlock()Fill the PRNG output block. |
protected void | rotateBuffer()make the next available filled buffer current, scheduling any unfilled
buffers for refill, and blocking until at least one buffer is ready |
void | run()The refiller thread |
void | seed(byte[] val)the seed is only propogated once the prng is started with startup() |
void | shutdown()Stop the PRNG |
void | startup()Start the PRNG |
addRandomByte, addRandomBytes, setupaddRandomBytes, init, isInitialised, name, nextByte, nextBytes, nextBytespublic AsyncFortunaStandalone(I2PAppContext context)
context - the I2P app contextpublic Object clone()
FortunaStandaloneclone in interface IRandomStandaloneclone in class FortunaStandalonepublic void fillBlock()
fillBlock in class FortunaStandaloneprotected void rotateBuffer()
public void seed(byte[] val)
seed in class FortunaStandalonepublic void shutdown()
public void startup()