public 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 and Description |
---|
RandomDotOrgSeedGenerator() |
Modifier and Type | Method and 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 SeedGenerator
length
- The length of the seed to generate (in bytes).SeedException
- If a seed cannot be generated for any reason.Copyright © 2015. All rights reserved.