|
AXL Software | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
ObjectRadRand
SecureRandom implementation using the underlying SecureRandom class as a key generator. A frequentely re-keyed MersenneTwister PRNG is used to generate bytes which are run through a message digest.
| Field Summary | |
static String |
Secure
String indicating this is the real PRNG. |
| Constructor Summary | |
RadRand()
|
|
| Method Summary | |
static void |
add(byte[] d)
Add data to the pool. |
static void |
add(int d)
Add data to the pool. |
static void |
add(long d)
Add data to the pool. |
static String |
getVersion()
Get the version. |
static byte |
nextByte()
Get the next byte - used in packet id's and other one byte integer values. |
static byte[] |
nextBytes(byte[] buf)
Get the next bytes. |
static byte[] |
nextBytes(byte[] buf,
int offset,
int count)
Get the next bytes. |
static int |
nextInt()
Get the next integer. |
static int |
nextInt(int max)
Get the next integer. |
static int |
nextUnsignedByte()
Get the next unsigned byte - used in packet id's and other one byte integer values. |
static void |
start()
Initialize the PRNG. |
| Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static String Secure
| Constructor Detail |
public RadRand()
| Method Detail |
public static void add(byte[] d)
public static void add(int d)
public static void add(long d)
public static String getVersion()
public static byte nextByte()
public static byte[] nextBytes(byte[] buf)
buf - Buffer to fill.
public static byte[] nextBytes(byte[] buf,
int offset,
int count)
buf - Buffer to fill.offset - offset into buffer.count - Number of bytes to fill.
public static int nextInt()
public static int nextInt(int max)
max - The maximum value to return.
public static int nextUnsignedByte()
public static void start()
throws RADIUSException
RADIUSException
|
AXL Software | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||