Interface ByteArrayReseedableRandom

    • Method Detail

      • setSeed

        void setSeed​(byte[] seed)
        Reseed this PRNG.
        Parameters:
        seed - The PRNG's new seed.
      • getNewSeedLength

        int getNewSeedLength()
        Returns the preferred length of a new byte-array seed. "Preferred" is implementation-defined when multiple seed lengths are supported, but should probably usually mean the longest one, since the longer the seed, the more random the output.
        Returns:
        The desired length of a new byte-array seed.