public interface

RandomGenerator

org.bouncycastle.crypto.prng.RandomGenerator
Known Indirect Subclasses

Class Overview

Generic interface for objects generating random bytes.

Summary

Public Methods
abstract void addSeedMaterial(byte[] seed)
Add more seed material to the generator.
abstract void addSeedMaterial(long seed)
Add more seed material to the generator.
abstract void nextBytes(byte[] bytes, int start, int len)
Fill part of bytes with random values.
abstract void nextBytes(byte[] bytes)
Fill bytes with random values.

Public Methods

public abstract void addSeedMaterial (byte[] seed)

Add more seed material to the generator.

Parameters
seed a byte array to be mixed into the generator's state.

public abstract void addSeedMaterial (long seed)

Add more seed material to the generator.

Parameters
seed a long value to be mixed into the generator's state.

public abstract void nextBytes (byte[] bytes, int start, int len)

Fill part of bytes with random values.

Parameters
bytes byte array to be filled.
start index to start filling at.
len length of segment to fill.

public abstract void nextBytes (byte[] bytes)

Fill bytes with random values.

Parameters
bytes byte array to be filled.