Uncommons Maths API
(Version 1.2.3)

org.uncommons.maths.random
Interface SeedGenerator

All Known Implementing Classes:
DefaultSeedGenerator, DevRandomSeedGenerator, RandomDotOrgSeedGenerator, SecureRandomSeedGenerator

public interface SeedGenerator

Strategy interface for seeding random number generators.

Author:
Daniel Dyer

Method Summary
 byte[] generateSeed(int length)
          Generate a seed value for a random number generator.
 

Method Detail

generateSeed

byte[] generateSeed(int length)
                    throws SeedException
Generate 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.

Uncommons Maths API
(Version 1.2.3)