|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<FallbackPolicy>
org.random.rjgodoy.trng.FallbackPolicy
public enum FallbackPolicy
Values for the org.random.rjgodoy.trng.fallback property.
When the quota is exhausted, the generator may fallback to use a local PRNG, or it may wait (several minutes) until the quota is positive again.
| Enum Constant Summary | |
|---|---|
PRNG
The RNG will return true random numbers from the remote source if the quota is positive, and will use a local PRNG if the quota is negative. |
|
TRNG
The RNG will return true random numbers from the remote source if the quota is positive, and will sleep if the quota is negative. |
|
| Method Summary | |
|---|---|
static FallbackPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static FallbackPolicy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final FallbackPolicy TRNG
public static final FallbackPolicy PRNG
The PRNG must be seed by the application code, by calling SecureRandom.setSeed(byte[]) on the instantiated SecureRandom object.
| Method Detail |
|---|
public static FallbackPolicy[] values()
for (FallbackPolicy c : FallbackPolicy.values()) System.out.println(c);
public static FallbackPolicy valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
| Submit a bug or request a feature | Copyright © (2008-2011) Roberto Javier Godoy |
| Project Web Hosted by | SouceForge.net is registered trademark of SourceForge, Inc., in the United States and other countries. |