public interface RandomGenerator
Modifier and Type | Method and Description |
---|---|
void |
addSeedMaterial(byte[] seed)
Add more seed material to the generator.
|
void |
addSeedMaterial(long seed)
Add more seed material to the generator.
|
void |
nextBytes(byte[] bytes)
Fill bytes with random values.
|
void |
nextBytes(byte[] bytes,
int start,
int len)
Fill part of bytes with random values.
|
void addSeedMaterial(byte[] seed)
seed
- a byte array to be mixed into the generator's state.void addSeedMaterial(long seed)
seed
- a long value to be mixed into the generator's state.void nextBytes(byte[] bytes)
bytes
- byte array to be filled.void nextBytes(byte[] bytes, int start, int len)
bytes
- byte array to be filled.start
- index to start filling at.len
- length of segment to fill.Copyright © 2015. All rights reserved.