org.bouncycastle.util.test
Class FixedSecureRandom
java.lang.Object
|
+--java.util.Random
|
+--java.security.SecureRandom
|
+--org.bouncycastle.util.test.FixedSecureRandom
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- TestRandomBigInteger, TestRandomData
- public class FixedSecureRandom
- extends java.security.SecureRandom
A secure random that returns pre-seeded data to calls of nextBytes() or generateSeed().
- See Also:
- Serialized Form
Methods inherited from class java.security.SecureRandom |
getInstance, getInstance, getProvider, getSeed, next, setSeed, setSeed |
Methods inherited from class java.util.Random |
nextBoolean, nextDouble, nextFloat, nextGaussian, nextInt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FixedSecureRandom
public FixedSecureRandom(byte[] value)
FixedSecureRandom
public FixedSecureRandom(byte[][] values)
FixedSecureRandom
public FixedSecureRandom(FixedSecureRandom.Source[] sources)
nextBytes
public void nextBytes(byte[] bytes)
- Overrides:
nextBytes
in class java.security.SecureRandom
generateSeed
public byte[] generateSeed(int numBytes)
- Overrides:
generateSeed
in class java.security.SecureRandom
nextInt
public int nextInt()
- Overrides:
nextInt
in class java.util.Random
nextLong
public long nextLong()
- Overrides:
nextLong
in class java.util.Random
isExhausted
public boolean isExhausted()