All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----java.util.Random | +----is.logi.crypto.random.RandomSpinner
Before any random bytes are returned the internal entropy pool is filled with the specified number of bytes from the scheduler. This initialization is performed in a separate thread and may take a few seconds. You should therefore create instances of the RandomSpinner well before using them.
The helper class which is used to gather entropy was written by Henry Strickland (strix@versant.com) and Greg Noel (greg@qualcomm.com). It is based on similar C code by Matt Blaze, Jack Lacy, and Don Mitchell.
This generator is normally somewhat slower than the SecureRandom generator in the java library, since it spends some time collecting entropy.
public RandomSpinner(int initial, int round)
initial
bytes from the Spinner and
collect round
bytes from it for every 16 bytes it outputs.
0..64
public RandomSpinner()
All Packages Class Hierarchy This Package Previous Next Index