org.objectweb.carol.cmi
Class SecureRandom

java.lang.Object
  extended byorg.objectweb.carol.cmi.SecureRandom

public class SecureRandom
extends java.lang.Object


Constructor Summary
SecureRandom()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureRandom

public SecureRandom()
Method Detail

setSeed

public static void setSeed(long rs)

setSeed

public static void setSeed(byte[] 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).

Parameters:
n - the bound on the random number. Must be positive.
Returns:
the random number.

getLong

public static long getLong()