org.mozilla.jss.crypto

Interface JSSSecureRandom

public interface JSSSecureRandom

Deprecated: Use the JCA interface instead (java.security.SecureRandom)

An interface for secure random numbers.
Method Summary
voidnextBytes(byte[] bytes)
Retrieves random bytes and stores them in the given array.
voidsetSeed(byte[] seed)
Seed the RNG with the given seed bytes.
voidsetSeed(long seed)
Seed the RNG with the eight bytes contained in seed.

Method Detail

nextBytes

public void nextBytes(byte[] 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.