public final class SecureRandom
extends java.util.Random
Constructor and Description |
---|
SecureRandom() |
Modifier and Type | Method and Description |
---|---|
static boolean |
forceJCA(boolean b)
Forces system to use supplied JCA Random.
|
protected int |
next(int bits) |
void |
nextBytes(byte[] bytes) |
void |
setSeed(byte[] seed) |
void |
setSeed(long seed) |
static boolean |
setSunLoops(int times)
Sets the number of times to run sun secure random
This could be used in two ways:
a.
|
public static final boolean setSunLoops(int times)
times
- the number of times to run sun secure randompublic static final boolean forceJCA(boolean b)
b
- boolean objectprotected final int next(int bits)
next
in class java.util.Random
public final void nextBytes(byte[] bytes)
nextBytes
in class java.util.Random
public final void setSeed(long seed)
setSeed
in class java.util.Random
public final void setSeed(byte[] seed)