| org.bouncycastle.crypto.prng.RandomGenerator
All known Subclasses: org.bouncycastle.crypto.prng.DigestRandomGenerator, org.bouncycastle.crypto.prng.ReversedWindowGenerator,
RandomGenerator | public interface RandomGenerator (Code) | | Generic interface for objects generating random bytes.
|
Method Summary | |
void | addSeedMaterial(byte[] seed) Add more seed material to the generator. | void | addSeedMaterial(long seed) Add more seed material to the generator. | void | nextBytes(byte[] bytes) Fill bytes with random values. | void | nextBytes(byte[] bytes, int start, int len) Fill part of bytes with random values. |
addSeedMaterial | void addSeedMaterial(byte[] seed)(Code) | | Add more seed material to the generator.
Parameters: seed - a byte array to be mixed into the generator's state. |
addSeedMaterial | void addSeedMaterial(long seed)(Code) | | Add more seed material to the generator.
Parameters: seed - a long value to be mixed into the generator's state. |
nextBytes | void nextBytes(byte[] bytes)(Code) | | Fill bytes with random values.
Parameters: bytes - byte array to be filled. |
nextBytes | void nextBytes(byte[] bytes, int start, int len)(Code) | | Fill part of bytes with random values.
Parameters: bytes - byte array to be filled. Parameters: start - index to start filling at. Parameters: len - length of segment to fill. |
|
|