|
Bouncy Castle Cryptography 1.45 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.crypto.prng.ThreadedSeedGenerator
public class ThreadedSeedGenerator
A thread based seed generator - one source of randomness.
Based on an idea from Marcus Lippert.
| Constructor Summary | |
|---|---|
ThreadedSeedGenerator()
|
|
| Method Summary | |
|---|---|
byte[] |
generateSeed(int numBytes,
boolean fast)
Generate seed bytes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadedSeedGenerator()
| Method Detail |
|---|
public byte[] generateSeed(int numBytes,
boolean fast)
If fast is set to true, the code should be round about 8 times faster when generating a long sequence of random bytes. 20 bytes of random values using the fast mode take less than half a second on a Nokia e70. If fast is set to false, it takes round about 2500 ms.
numBytes - the number of bytes to generatefast - true if fast mode should be used
|
Bouncy Castle Cryptography 1.45 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||