Constructors: NewRNGCryptoServiceProvider |
Creates a new RNGCryptoServiceProvider that uses a crypto service provider to generate random numbers.
Public Function NewRNGCryptoServiceProvider( ByVal CspParams As CspParameters ) As RNGCryptoServiceProvider
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.