System.Security.Cryptography.RNGCryptoServiceProvider Class

Implements a cryptographic Random Number Generator (RNG) using the implementation provided by the cryptographic service provider (CSP). This class cannot be inherited.

See Also: RNGCryptoServiceProvider Members


public sealed class RNGCryptoServiceProvider : RandomNumberGenerator


On Linux, and some UNIX derivate operating systems, the random numbers comes from /dev/random, or if not available, from /dev/urandom.

On Windows operating systems the random numbers comes directly from CryptoAPI.


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