Access to internals is synchronized so a single one of these can be shared.
| Modifier and Type | Field and Description |
|---|---|
| private final RandomGenerator | |
| private byte[] | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addSeedMaterial(byte[]
a byte array to be mixed into the generator's state. seed)Implements org. |
| public void | addSeedMaterial(long
a long value to be mixed into the generator's state. seed)Implements org. |
| private void | |
| public void | nextBytes(byte[]
byte array to be filled. bytes)Implements org. |
| public void | nextBytes(byte[]
byte array to be filled. bytes, int index to start filling at. start, int length of segment to fill. len)Implements org. |
| generator | back to summary |
|---|---|
| private final RandomGenerator generator | |
| window | back to summary |
|---|---|
| private byte[] window | |
| windowCount | back to summary |
|---|---|
| private int windowCount | |
| ReversedWindowGenerator | back to summary |
|---|---|
| public ReversedWindowGenerator(RandomGenerator generator, int windowSize) | |
| addSeedMaterial | back to summary |
|---|---|
| public void addSeedMaterial(byte[] seed) Implements org. Add more seed material to the generator.
| |
| addSeedMaterial | back to summary |
|---|---|
| public void addSeedMaterial(long seed) Implements org. Add more seed material to the generator.
| |
| doNextBytes | back to summary |
|---|---|
| private void doNextBytes(byte[] bytes, int start, int len) | |
| nextBytes | back to summary |
|---|---|
| public void nextBytes(byte[] bytes) Implements org. Fill bytes with random values.
| |
| nextBytes | back to summary |
|---|---|
| public void nextBytes(byte[] bytes, int start, int len) Implements org. Fill part of bytes with random values.
| |