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

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public sealed class RNGCryptoServiceProvider : RandomNumberGenerator

Remarks

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.

Requirements

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