#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR) #pragma warning disable using System; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto { /// /// Base interface describing an entropy source for a DRBG. /// public interface IEntropySource { /// /// Return whether or not this entropy source is regarded as prediction resistant. /// /// true if this instance is prediction resistant; otherwise, false. bool IsPredictionResistant { get; } /// /// Return a byte array of entropy. /// /// The entropy bytes. byte[] GetEntropy(); #if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER || _UNITY_2021_2_OR_NEWER_ int GetEntropy(Span output); #endif /// /// Return the number of bits of entropy this source can produce. /// /// The size, in bits, of the return value of getEntropy. int EntropySize { get; } } } #pragma warning restore #endif