org.mozilla.jss.crypto

Interface JSSSecureRandom

Known Implementing Classes:
PK11SecureRandom

public interface JSSSecureRandom

An interface for secure random numbers.

Method Summary

void
nextBytes(bytes[] )
Retrieves random bytes and stores them in the given array.
void
setSeed(byte[] seed)
Seed the RNG with the given seed bytes.
void
setSeed(long seed)
Seed the RNG with the eight bytes contained in seed.

Method Details

nextBytes

public void nextBytes(bytes[] )
Retrieves random bytes and stores them in the given array.

setSeed

public void setSeed(byte[] seed)
Seed the RNG with the given seed bytes.

setSeed

public void setSeed(long seed)
Seed the RNG with the eight bytes contained in seed.