public class AsyncFortunaStandalone extends FortunaStandalone implements Runnable
FortunaStandalone.Generator
generator, lastRefill, lastReseed, MIN_POOL_SIZE, NUM_POOLS, pool, pool0Count, pools, refillCount, reseedCount, SEED
buffer, initialised, name, ndx
Constructor and Description |
---|
AsyncFortunaStandalone(I2PAppContext context) |
Modifier and Type | Method and 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() |
addRandomByte, addRandomBytes, addRandomEvent, setup
addRandomBytes, clone, init, isInitialised, name, nextByte, nextBytes, nextBytes
public AsyncFortunaStandalone(I2PAppContext context)
public void startup()
public void shutdown()
public void seed(byte[] val)
seed
in class FortunaStandalone
protected void allocBuffer()
allocBuffer
in class FortunaStandalone
protected void rotateBuffer()
public void fillBlock()
fillBlock
in class FortunaStandalone