org.objectweb.carol.cmi
Class SecureRandom
java.lang.Object
org.objectweb.carol.cmi.SecureRandom
public class SecureRandom
extends java.lang.Object
static int | getInt()
|
static int | getInt(int n) - Returns a random number between 0 (inclusive) and the specified value
(exclusive).
|
static long | getLong()
|
static void | setSeed(byte[] rs)
|
static void | setSeed(long rs)
|
getInt
public static int getInt()
getInt
public static int getInt(int n)
Returns a random number between 0 (inclusive) and the specified value
(exclusive).
n
- the bound on the random number. Must be positive.
- the random number.
getLong
public static long getLong()
setSeed
public static void setSeed(byte[] rs)
setSeed
public static void setSeed(long rs)