Class 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

      Constructors 
      Constructor Description
      NullPRNG()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void nextBytes​(byte[] bytes)  
      • Methods inherited from class java.security.SecureRandom

        generateSeed, getAlgorithm, getInstance, getInstance, getInstance, getInstance, getInstance, getInstance, getInstanceStrong, getParameters, getProvider, getSeed, next, nextBytes, reseed, reseed, setSeed, setSeed, toString
      • Methods inherited from class java.util.Random

        doubles, doubles, doubles, doubles, ints, ints, ints, ints, longs, longs, longs, longs, nextBoolean, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NullPRNG

        public NullPRNG()
    • Method Detail

      • nextBytes

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