IRandomStandalone, RandomEventListenerStandalone, Serializable, Cloneable, Runnable, EventListenerpublic class AsyncFortunaStandalone extends FortunaStandalone implements Runnable
FortunaStandalone.Generatorbuffer, initialised, name, ndxgenerator, lastRefill, lastReseed, MIN_POOL_SIZE, NUM_POOLS, pool, pool0Count, pools, refillCount, reseedCount, SEED| Constructor | Description |
|---|---|
AsyncFortunaStandalone(I2PAppContext context) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
allocBuffer() |
|
void |
fillBlock() |
|
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() |
Note - methods may hang or NPE or throw IllegalStateExceptions after this
|
void |
startup() |
addRandomBytes, clone, init, isInitialised, name, nextByte, nextBytes, nextBytesaddRandomByte, addRandomBytes, addRandomEvent, setuppublic AsyncFortunaStandalone(I2PAppContext context)
public void startup()
public void shutdown()
public void seed(byte[] val)
seed in class FortunaStandaloneprotected void allocBuffer()
allocBuffer in class FortunaStandaloneprotected void rotateBuffer()
public void fillBlock()
fillBlock in class FortunaStandalone