CryptoApiRandomGenerator Class

Uses RandomNumberGenerator.Create() to get randomness generator

Definition

Namespace: Org.BouncyCastle.Crypto.Prng
Assembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
public sealed class CryptoApiRandomGenerator : IRandomGenerator, 
	IDisposable
Inheritance
Object    CryptoApiRandomGenerator
Implements
IRandomGenerator, IDisposable

Constructors

CryptoApiRandomGeneratorInitializes a new instance of the CryptoApiRandomGenerator class
CryptoApiRandomGenerator(RandomNumberGenerator)Initializes a new instance of the CryptoApiRandomGenerator class

Methods

AddSeedMaterial(Byte) 
AddSeedMaterial(Int64) 
AddSeedMaterial(ReadOnlySpanByte) 
DisposeReleases all resources used by the CryptoApiRandomGenerator
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
NextBytes(Byte) 
NextBytes(SpanByte) 
NextBytes(Byte, Int32, Int32) 
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also