Module java.base
Package java.security

# Class SecureRandom

=
public class SecureRandom
extends java.util.Random

## Constructors

- =
  public SecureRandom()
- =
  public SecureRandom(byte[] arg0)
- =
  protected SecureRandom(java.security.SecureRandomSpi arg0, java.security.Provider arg1)

## Methods

- =
  public byte[] generateSeed(int arg0)
- =
  public java.lang.String getAlgorithm()
- =
  public static java.security.SecureRandom getInstance(java.lang.String arg0) throws java.security.NoSuchAlgorithmException
- =
  public static java.security.SecureRandom getInstance(java.lang.String arg0, java.lang.String arg1) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
- =
  public static java.security.SecureRandom getInstance(java.lang.String arg0, java.security.Provider arg1) throws java.security.NoSuchAlgorithmException
- =
  public static java.security.SecureRandom getInstance(java.lang.String arg0, java.security.SecureRandomParameters arg1) throws java.security.NoSuchAlgorithmException
- =
  public static java.security.SecureRandom getInstance(java.lang.String arg0, java.security.SecureRandomParameters arg1, java.lang.String arg2) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
- =
  public static java.security.SecureRandom getInstance(java.lang.String arg0, java.security.SecureRandomParameters arg1, java.security.Provider arg2) throws java.security.NoSuchAlgorithmException
- =
  public static java.security.SecureRandom getInstanceStrong() throws java.security.NoSuchAlgorithmException
- =
  public java.security.SecureRandomParameters getParameters()
- =
  public final java.security.Provider getProvider()
- =
  public static byte[] getSeed(int arg0)
- =
  protected final int next(int arg0)
- =
  public void nextBytes(byte[] arg0)
- =
  public void nextBytes(byte[] arg0, java.security.SecureRandomParameters arg1)
- =
  public void reseed()
- =
  public void reseed(java.security.SecureRandomParameters arg0)
- =
  public void setSeed(long arg0)
- =
  public void setSeed(byte[] arg0)
- =
  public java.lang.String toString()

## Serialized Form

=

### serialVersionUID

=4940670005562187

### Serialized Fields

- =
  java.lang.String algorithm
- =
  long counter
- =
  java.security.MessageDigest digest
- =
  java.security.Provider provider
- =
  byte[] randomBytes
- =
  int randomBytesUsed
- =
  java.security.SecureRandomSpi secureRandomSpi
- =
  byte[] state
- =
  boolean threadSafe

## Summary

No differences.