Bouncy Castle Cryptography Library 1.71

org.bouncycastle.pqc.crypto.test
Class NullPRNG

java.lang.Object
  |
  +--java.util.Random
        |
        +--java.security.SecureRandom
              |
              +--org.bouncycastle.pqc.crypto.test.NullPRNG
All Implemented Interfaces:
java.io.Serializable

public final class NullPRNG
extends java.security.SecureRandom

Implementation of null PRNG returning zeroes only. For testing purposes only(!).

See Also:
Serialized Form

Constructor Summary
NullPRNG()
           
 
Method Summary
 void nextBytes(byte[] bytes)
           
 
Methods inherited from class java.security.SecureRandom
generateSeed, getInstance, getInstance, getProvider, getSeed, next, setSeed, setSeed
 
Methods inherited from class java.util.Random
nextBoolean, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullPRNG

public NullPRNG()
Method Detail

nextBytes

public void nextBytes(byte[] bytes)
Overrides:
nextBytes in class java.security.SecureRandom

Bouncy Castle Cryptography Library 1.71