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