System.Security.Cryptography.RandomNumberGenerator Class

Represents the abstract class from which all implementations of cryptographic random number generators derive.

See Also: RandomNumberGenerator Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public abstract class RandomNumberGenerator : IDisposable

Remarks

Cryptographic random number generators create cryptographically strong random values.

Application code does not directly use this class. This abstract class is provided as the base class for all cryptographic random number generators.

For an implementation of a cryptographic random number generator, use the derived class System.Security.Cryptography.RNGCryptoServiceProvider.

Requirements

Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0