Class FixedSecureRandom

  • All Implemented Interfaces:
    Serializable

    public class FixedSecureRandom
    extends SecureRandom
    A secure random that returns pre-seeded data to calls of nextBytes() or generateSeed().
    See Also:
    Serialized Form
    • Constructor Detail

      • FixedSecureRandom

        public FixedSecureRandom​(byte[] value)
      • FixedSecureRandom

        public FixedSecureRandom​(byte[][] values)
      • FixedSecureRandom

        public FixedSecureRandom​(boolean intPad,
                                 byte[] value)
        Pad the data on integer boundaries. This is necessary for the classpath project's BigInteger implementation.
      • FixedSecureRandom

        public FixedSecureRandom​(boolean intPad,
                                 byte[][] values)
        Pad the data on integer boundaries. This is necessary for the classpath project's BigInteger implementation.
    • Method Detail

      • nextInt

        public int nextInt()
        Overrides:
        nextInt in class Random
      • nextLong

        public long nextLong()
        Overrides:
        nextLong in class Random
      • isExhausted

        public boolean isExhausted()