public class FixedEntropySourceProvider extends java.lang.Object implements EntropySourceProvider
| Constructor and Description |
|---|
FixedEntropySourceProvider(byte[] data,
boolean isPredictionResistant)
Base constructor.
|
| Modifier and Type | Method and Description |
|---|---|
EntropySource |
get(int bitsRequired)
Return an EntropySource based on the data provided to this object.
|
public FixedEntropySourceProvider(byte[] data,
boolean isPredictionResistant)
data - the data that will be returned by EntropySources created by this provider.isPredictionResistant - true if the EntropySource should be marked as prediction resistant, false otherwise.public EntropySource get(int bitsRequired)
get in interface EntropySourceProviderbitsRequired - the size of the block of entropy required.