SecureRandom.this

Constructs a secure random number generator (RNG) implementing the default random number algorithm. The SecureRandom instance is seeded with the specified seed bytes.

<p> This constructor traverses the list of registered security Providers, starting with the most preferred Provider. A new SecureRandom object encapsulating the SecureRandomSpi implementation from the first Provider that supports a SecureRandom (RNG) algorithm is returned. If none of the Providers support a RNG algorithm, then an implementation-specific default is returned.

<p> Note that the list of registered providers may be retrieved via the {@link Security#getProviders() Security.getProviders()} method.

<p> See the SecureRandom section in the <a href= "{@docRoot}/../technotes/guides/security/StandardNames.html#SecureRandom"> Java Cryptography Architecture Standard Algorithm Name Documentation</a> for information about standard RNG algorithm names.

@param seed the seed.

  1. this()
  2. this(byte[] seed)
    class SecureRandom
    this
    (
    byte[] seed
    )

Meta