Class EntropyBlockingSplittableRandomAdapter

    • Constructor Detail

      • EntropyBlockingSplittableRandomAdapter

        public EntropyBlockingSplittableRandomAdapter​(RandomSeeder randomSeeder,
                                                      long minimumEntropy)
        Creates an instance.
        Parameters:
        randomSeeder - the RandomSeeder that will reseed this. Its seed generator is also used on the calling thread to generate an initial seed when this EntropyBlockingSplittableRandomAdapter is used the first time on each thread.
        minimumEntropy - the minimum entropy; operations that would drop the entropy below this amount will instead block until the calling thread's PRNG is reseeded. Should generally be zero or negative.
      • EntropyBlockingSplittableRandomAdapter

        public EntropyBlockingSplittableRandomAdapter​(@Nullable
                                                      SeedGenerator seedGenerator,
                                                      RandomSeeder randomSeeder,
                                                      long minimumEntropy)
        Creates an instance.
        Parameters:
        seedGenerator - the seed generator that will generate an initial PRNG seed for each thread
        randomSeeder - the RandomSeeder that will reseed this
        minimumEntropy - the minimum entropy; operations that would drop the entropy below this amount will instead block until the calling thread's PRNG is reseeded. Should generally be zero or negative.