Random implementation using the built-in SecureRandom PRNG.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private final SecureRandom | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | fill(byte[]
byte array to be filled. foo, int index to start filling at. start, int length of segment to fill. len)Implements org. Fill part of bytes with random values. |
| public static SecureRandom | |
| public String | |
| private static SecureRandom | |
| public synchronized int | random(int
The range upper limit n)Implements org. Returns a pseudo-random uniformly distributed |
| NAME | back to summary |
|---|---|
| public static final String NAME | |
| random | back to summary |
|---|---|
| private final SecureRandom random | |
| tmp | back to summary |
|---|---|
| private byte[] tmp | |
| JceRandom | back to summary |
|---|---|
| public JceRandom() | |
| fill | back to summary |
|---|---|
| public synchronized void fill(byte[] foo, int start, int len) Implements org. Doc from org. Fill part of bytes with random values.
| |
| getGlobalInstance | back to summary |
|---|---|
| public static SecureRandom getGlobalInstance() | |
| getName | back to summary |
|---|---|
| public String getName() Implements org.
| |
| getRandom | back to summary |
|---|---|
| private static SecureRandom getRandom() | |
| random | back to summary |
|---|---|
| public synchronized int random(int n) Implements org. Doc from org. Returns a pseudo-random uniformly distributed
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final SecureRandom |
| Access | Constructor and Description |
|---|---|
| private |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final SecureRandom INSTANCE | |
| Cache | back to summary |
|---|---|
| private Cache() | |