System.Security.Cryptography.RandomNumberGenerator Class

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

See Also: RandomNumberGenerator Members


public abstract class RandomNumberGenerator : IDisposable


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.


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