public class SynchronizedSecureRandomWrapper
extends java.security.SecureRandom
Modifier and Type | Field and Description |
---|---|
protected java.security.SecureRandom |
delegate |
Constructor and Description |
---|
SynchronizedSecureRandomWrapper(java.security.SecureRandom delegate) |
Modifier and Type | Method and Description |
---|---|
byte[] |
generateSeed(int numBytes)
Delegation
|
java.lang.String |
getAlgorithm()
Delegation
|
boolean |
nextBoolean()
Delegation
|
void |
nextBytes(byte[] bytes)
Delegation
|
double |
nextDouble()
Delegation
|
float |
nextFloat()
Delegation
|
double |
nextGaussian()
Delegation
|
int |
nextInt()
Delegation
|
int |
nextInt(int bound)
Delegation
|
long |
nextLong()
Delegation
|
void |
setSeed(byte[] seed)
Delegation
|
void |
setSeed(long seed)
Delegation
|
getInstance, getInstance, getInstance, getInstanceStrong, getProvider, getSeed, next
public SynchronizedSecureRandomWrapper(java.security.SecureRandom delegate)
public byte[] generateSeed(int numBytes)
generateSeed
in class java.security.SecureRandom
public java.lang.String getAlgorithm()
getAlgorithm
in class java.security.SecureRandom
public void nextBytes(byte[] bytes)
nextBytes
in class java.security.SecureRandom
public void setSeed(byte[] seed)
setSeed
in class java.security.SecureRandom
public void setSeed(long seed)
setSeed
in class java.security.SecureRandom
public boolean nextBoolean()
nextBoolean
in class java.util.Random
public double nextDouble()
nextDouble
in class java.util.Random
public float nextFloat()
nextFloat
in class java.util.Random
public double nextGaussian()
nextGaussian
in class java.util.Random
public int nextInt()
nextInt
in class java.util.Random
public int nextInt(int bound)
nextInt
in class java.util.Random
public long nextLong()
nextLong
in class java.util.Random