The constructor for a CSPRNG. When a CSPRNG is created with
this constructor, the relevant libraries and functions from them are
loaded. If they cannot be loaded, the constructor throws a
CSPRNGException and the CSPRNG will not be created.
This constructor first attempts to load the Windows
Cryptography: Next Generation API. If that cannot be loaded, it
attempts to load the CryptoAPI. If that cannot be loaded, it attempts
to load the $(MONO RtlGenRandom) function. If all of those fail,
the CSPRNGException is thrown, since no source of
cryptographically-secure pseudo-random bytes can be accessed.
The constructor for a CSPRNG. When a CSPRNG is created with this constructor, the relevant libraries and functions from them are loaded. If they cannot be loaded, the constructor throws a CSPRNGException and the CSPRNG will not be created.
This constructor first attempts to load the Windows Cryptography: Next Generation API. If that cannot be loaded, it attempts to load the CryptoAPI. If that cannot be loaded, it attempts to load the $(MONO RtlGenRandom) function. If all of those fail, the CSPRNGException is thrown, since no source of cryptographically-secure pseudo-random bytes can be accessed.