Package org.uncommons.maths.random
Interface SeedGenerator
-
- All Known Implementing Classes:
DefaultSeedGenerator,DevRandomSeedGenerator,RandomDotOrgSeedGenerator,SecureRandomSeedGenerator
public interface SeedGeneratorStrategy interface for seeding random number generators.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]generateSeed(int length)Generate a seed value for a random number generator.
-
-
-
Method Detail
-
generateSeed
byte[] generateSeed(int length) throws SeedExceptionGenerate a seed value for a random number generator.- Parameters:
length- The length of the seed to generate (in bytes).- Returns:
- A byte array containing the seed data.
- Throws:
SeedException- If a seed cannot be generated for any reason.
-
-