java.lang.Object | |
↳ | org.bouncycastle.crypto.prng.DigestRandomGenerator |
Random generation based on the digest with counter. Calling addSeedMaterial will always increase the entropy of the hash.
Internal access to the digest is synchronized so a single one of these can be shared.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add more seed material to the generator.
| |||||||||||
Add more seed material to the generator.
| |||||||||||
Fill part of bytes with random values.
| |||||||||||
Fill bytes with random values.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.bouncycastle.crypto.prng.RandomGenerator
|
Add more seed material to the generator.
inSeed | a byte array to be mixed into the generator's state. |
---|
Add more seed material to the generator.
rSeed | a long value to be mixed into the generator's state. |
---|
Fill part of bytes with random values.
bytes | byte array to be filled. |
---|---|
start | index to start filling at. |
len | length of segment to fill. |
Fill bytes with random values.
bytes | byte array to be filled. |
---|