Class NullPRNG

java.lang.Object
java.util.Random
java.security.SecureRandom
org.bouncycastle.pqc.crypto.test.NullPRNG
All Implemented Interfaces:
Serializable, java.util.random.RandomGenerator

public final class NullPRNG extends SecureRandom
Implementation of null PRNG returning zeroes only. For testing purposes only(!).
See Also:
  • Constructor Details

    • NullPRNG

      public NullPRNG()
  • Method Details

    • nextBytes

      public void nextBytes(byte[] bytes)
      Specified by:
      nextBytes in interface java.util.random.RandomGenerator
      Overrides:
      nextBytes in class SecureRandom