@ParametersAreNonnullByDefault
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 AnuQuantumSeedClient API client for the Australian National University's quantum RNG, which extracts randomness from quantum-vacuum fluctuations.BufferedSeedGenerator A seed generator that wraps another, maintaining a buffer of previously-fetched bytes to reduce the number of I/O calls.LegacyRandomSeeder ARandomSeederthat can reseed any instance ofRandom.RandomDotOrgAnonymousClient Connects to random.org's old API (via HTTPS) and downloads a set of random bits to use as seed data.RandomDotOrgApi2Client Uses the random.org JSON API documented at api.random.org.RandomSeeder Thread that loops overByteArrayReseedableRandominstances and reseeds them.RandomSeeder.DefaultThreadFactory AThreadFactorythat sets the name and priority of the threads it creates.SecureRandomSeedGenerator SeedGeneratorimplementation that uses Java's bundledSecureRandomRNG to generate random seed data.SeedGeneratorPreferenceList ASeedGeneratorimplementation that iterates over multiple delegates until one succeeds.SeedGeneratorPreferenceList.Builder WebSeedClient ASeedGeneratorthat is a client for a Web random-number service.WebSeedClientConfiguration Common configuration parameters for an instance ofWebSeedClient.WebSeedClientConfiguration.Builder -
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. -
Exception Summary Exception Description SeedException Exception thrown bySeedGeneratorimplementations when they are unable to generate a new seed for an RNG.