org.objectweb.carol.cmi

Class SecureRandom


public class SecureRandom
extends java.lang.Object

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)

Method Details

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()


setSeed

public static void setSeed(byte[] rs)


setSeed

public static void setSeed(long rs)