|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.carol.cmi.SecureRandom
Wrapper for java.security.SecureRandom
SecureRandom
Constructor Summary | |
SecureRandom()
|
Method Summary | |
static int |
getInt()
Get a random number |
static int |
getInt(int n)
Returns a random number between 0 (inclusive) and the specified value (exclusive). |
static long |
getLong()
Get a random number |
static void |
setSeed(byte[] rs)
Reseeds the underlying random object |
static void |
setSeed(long rs)
Reseeds the underlying random object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SecureRandom()
Method Detail |
public static void setSeed(long rs)
rs
- the seedpublic static void setSeed(byte[] rs)
rs
- the seedpublic static int getInt()
public static int getInt(int n)
n
- the bound on the random number. Must be positive.
public static long getLong()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |