|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.util.RandomUtil
public class RandomUtil
System-wide random number generator.
| Constructor Summary | |
|---|---|
RandomUtil()
|
|
| Method Summary | |
|---|---|
static void |
addRandom(long seed)
Adds a random number to the server seed. |
static void |
addRandom(java.lang.String random)
Adds a random number based on a string. |
static long |
getRandomLong()
Returns the next random long. |
static java.security.SecureRandom |
getSecureRandom()
Sets the specific seed. |
static java.util.Random |
getTestRandom()
|
static int |
nextInt(int n)
Returns the next random int. |
static void |
setSecureRandom(java.security.SecureRandom random)
Sets the specific seed. |
static void |
setTestSeed(long seed)
Sets the specific seed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RandomUtil()
| Method Detail |
|---|
public static long getRandomLong()
public static int nextInt(int n)
public static void addRandom(java.lang.String random)
public static void addRandom(long seed)
public static void setTestSeed(long seed)
public static void setSecureRandom(java.security.SecureRandom random)
public static java.security.SecureRandom getSecureRandom()
public static java.util.Random getTestRandom()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||