Constructors: NewRNGCryptoServiceProvider

NewRNGCryptoServiceProvider

Creates a new RNGCryptoServiceProvider that uses a crypto service provider to generate random numbers.



 Public Function NewRNGCryptoServiceProvider(
	  ByVal CspParams As CspParameters ) As RNGCryptoServiceProvider

Parameters

CspParams
[ByVal] CspParameters. Parameters used to allow a specific crypto service provider to be used instead of the default.

Return Values

RNGCryptoServiceProvider -  A new RNGCryptoServiceProvider object that generated random numbers using a crypto service provider.

Remarks

Crypto-service providers generally produce a more random set of numbers than the standard Windows API set of random number generators. This is because cryptography depends a great deal on random number generation to be effective.

The default provider will be one of Microsofts cryptography service providers such as "Microsoft Base Cryptographic Provider v1.0" or "Microsoft Enhanced Cryptographic Provider v1.0."

Using the CspParams allows for a specific or custom provider to be used instead of the Microsoft providers.

See Also

Project CorLib Overview

Class Constructors Overview

RNGCryptoServiceProvider