RandomNumberGenerator.Create Method

Definition

Creates an instance of an implementation of a cryptographic random number generator.

Overloads

Create()

Creates an instance of the default implementation of a cryptographic random number generator that can be used to generate random data.

Create(String)

Creates an instance of the specified implementation of a cryptographic random number generator.

Create()

Creates an instance of the default implementation of a cryptographic random number generator that can be used to generate random data.

public:
 static System::Security::Cryptography::RandomNumberGenerator ^ Create();
public static System.Security.Cryptography.RandomNumberGenerator Create ();
static member Create : unit -> System.Security.Cryptography.RandomNumberGenerator
Public Shared Function Create () As RandomNumberGenerator

Returns

RandomNumberGenerator

A new instance of a cryptographic random number generator.

See also

Applies to

Create(String)

Creates an instance of the specified implementation of a cryptographic random number generator.

public:
 static System::Security::Cryptography::RandomNumberGenerator ^ Create(System::String ^ rngName);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.RandomNumberGenerator? Create (string rngName);
public static System.Security.Cryptography.RandomNumberGenerator Create (string rngName);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : string -> System.Security.Cryptography.RandomNumberGenerator
static member Create : string -> System.Security.Cryptography.RandomNumberGenerator
Public Shared Function Create (rngName As String) As RandomNumberGenerator

Parameters

rngName
String

The name of the random number generator implementation to use.

Returns

RandomNumberGenerator

A new instance of a cryptographic random number generator.

Attributes

See also

Applies to