#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR) using System; namespace Org.BouncyCastle.Crypto.Prng { /// Generic interface for objects generating random bytes. public interface IRandomGenerator { /// Add more seed material to the generator. /// A byte array to be mixed into the generator's state. void AddSeedMaterial(byte[] seed); /// Add more seed material to the generator. /// A long value to be mixed into the generator's state. void AddSeedMaterial(long seed); /// Fill byte array with random values. /// Array to be filled. void NextBytes(byte[] bytes); /// Fill byte array with random values. /// Array to receive bytes. /// Index to start filling at. /// Length of segment to fill. void NextBytes(byte[] bytes, int start, int len); } } #endif