2 references to CryptGenRandom
System.Core (2)
System\Security\Cryptography\AesCryptoServiceProvider.cs (1)
407
if (!CapiNative.UnsafeNativeMethods.
CryptGenRandom
(m_cspHandle, iv.Length, iv)) {
System\Security\Cryptography\CapiSymmetricAlgorithm.cs (1)
305
CapiNative.UnsafeNativeMethods.
CryptGenRandom
(m_provider, result.Length - 1, result);