SeedGeneratorpublic class RandomDotOrgSeedGenerator extends Object implements SeedGenerator
DevRandomSeedGenerator where possible,
as it should be much quicker. This seed generator is most useful on Microsoft
Windows and other platforms that do not provide /dev/random.| Constructor | Description |
|---|---|
RandomDotOrgSeedGenerator() |
| Modifier and Type | Method | Description |
|---|---|---|
byte[] |
generateSeed(int length) |
Generate a seed value for a random number generator.
|
String |
toString() |
public byte[] generateSeed(int length)
throws SeedException
generateSeed in interface SeedGeneratorlength - The length of the seed to generate (in bytes).SeedException - If a seed cannot be generated for any reason.