public class DevRandomSeedGenerator extends Object implements SeedGenerator
SeedException is thrown.| Constructor and Description |
|---|
DevRandomSeedGenerator() |
| 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 SeedGeneratorlength - The length of the seed to generate (in bytes).SeedException - If /dev/random does not exist or is
not accessible