<PackageReference Include="BouncyCastle.Cryptography" Version="2.1.1" />

IEntropySource

public interface IEntropySource
Base interface describing an entropy source for a DRBG.
int EntropySize { get; }

Return the number of bits of entropy this source can produce.

bool IsPredictionResistant { get; }

Return whether or not this entropy source is regarded as prediction resistant.

byte[] GetEntropy()

Return a byte array of entropy.