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

CryptoApiRandomGenerator

Uses RandomNumberGenerator.Create() to get randomness generator

public CryptoApiRandomGenerator(RandomNumberGenerator randomNumberGenerator)

public void AddSeedMaterial(byte[] seed)

public void AddSeedMaterial(ReadOnlySpan<byte> inSeed)

public void AddSeedMaterial(long seed)

public void Dispose()

public void NextBytes(byte[] bytes)

public void NextBytes(byte[] bytes, int start, int len)

public void NextBytes(Span<byte> bytes)