System.Security.Cryptography.RandomNumberGenerator: Method Members

The methods of System.Security.Cryptography.RandomNumberGenerator are listed below. For a list of all members, see the RandomNumberGenerator Members list.

See Also: Inherited members from System.Object

Public Methods

static
Create() : RandomNumberGenerator

When overridden in a derived class, creates an instance of the default implementation of a cryptographic random number generator that can be used to generate random data.

static
Create(string) : RandomNumberGenerator

When overridden in a derived class, creates an instance of the specified implementation of a cryptographic random number generator.

Dispose()

When overridden in a derived class, releases all resources used by the current instance of the System.Security.Cryptography.RandomNumberGenerator class.

abstract
GetBytes(byte[])

When overridden in a derived class, fills an array of bytes with a cryptographically strong random sequence of values.

GetNonZeroBytes(byte[])

When overridden in a derived class, fills an array of bytes with a cryptographically strong random sequence of nonzero values.

Protected Methods

Dispose(bool)

When overridden in a derived class, releases the unmanaged resources used by the System.Security.Cryptography.RandomNumberGenerator and optionally releases the managed resources.