Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RNGCryptoServiceProvider Class
Collapse the table of content
Expand the table of content

RNGCryptoServiceProvider Class

Implements a cryptographic Random Number Generator (RNG) using the implementation provided by the cryptographic service provider (CSP).

For a list of all members of this type, see RNGCryptoServiceProvider Members.


[Visual Basic]
NotInheritable Public Class RNGCryptoServiceProvider
   Inherits RandomNumberGenerator
public sealed class RNGCryptoServiceProvider :
public __gc __sealed class RNGCryptoServiceProvider : public
public class RNGCryptoServiceProvider extends RandomNumberGenerator

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Namespace: System.Security.Cryptography

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

RNGCryptoServiceProvider Members | System.Security.Cryptography Namespace | Cryptographic Services

© 2015 Microsoft