Package io.github.pr0methean.betterrandom.seed
Tools to obtain and apply truly-random seeds for
Random implementations,
especially those that also implement
ByteArrayReseedableRandom.-
Interface Summary Interface Description SeedGenerator Strategy interface for seeding random number generators. -
Class Summary Class Description BufferedSeedGenerator A seed generator that wraps another, maintaining a buffer of previously-fetched bytes to reduce the number of I/O calls.LegacyRandomSeeder ASimpleRandomSeederthat can reseed any instance ofRandom.SecureRandomSeedGenerator SeedGeneratorimplementation that uses Java's bundledSecureRandomRNG to generate random seed data.SeedGeneratorPreferenceList ASeedGeneratorimplementation that iterates over multiple delegates until one succeeds.SimpleRandomSeeder Thread that loops overByteArrayReseedableRandominstances and reseeds them.SimpleRandomSeeder.DefaultThreadFactory AThreadFactorythat sets the name and priority of the threads it creates. -
Enum Summary Enum Description DefaultSeedGenerator Seed generator that is the default for the program where it is running.DevRandomSeedGenerator RNG seed strategy that gets data from/dev/randomon systems that provide it (e.g.RandomDotOrgSeedGenerator Connects to random.org's old API (via HTTPS) and downloads a set of random bits to use as seed data. -
Exception Summary Exception Description SeedException Exception thrown bySeedGeneratorimplementations when they are unable to generate a new seed for an RNG.