From 9d5dce0e913685a03fd7ce665fa221cdea94373e Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Thu, 14 Apr 2016 12:59:17 -0700 Subject: Fix full framework build break [tfs-changeset: 1596259] --- src/mscorlib/src/System/Collections/Hashtable.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mscorlib/src/System/Collections/Hashtable.cs b/src/mscorlib/src/System/Collections/Hashtable.cs index fa39fc85b0..95676d0379 100644 --- a/src/mscorlib/src/System/Collections/Hashtable.cs +++ b/src/mscorlib/src/System/Collections/Hashtable.cs @@ -1805,6 +1805,7 @@ namespace System.Collections { private const int bufferSize = 1024; #if !FEATURE_CORECLR + private static RandomNumberGenerator rng; #endif private static byte[] data; private static int currentIndex = bufferSize; @@ -1822,8 +1823,7 @@ namespace System.Collections { data = new byte[bufferSize]; Contract.Assert(bufferSize % 8 == 0, "We increment our current index by 8, so our buffer size must be a multiple of 8"); #if !FEATURE_CORECLR - Microsoft.Win32.Win32Native.CryptAcquireContext(out hCryptProv, null, null, - Microsoft.Win32.Win32Native.PROV_RSA_FULL, Microsoft.Win32.Win32Native.CRYPT_VERIFYCONTEXT); + rng = RandomNumberGenerator.Create(); #endif } -- cgit v1.2.3 From 680663e8a5783e0bac250293df8157057b1b7cf0 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Thu, 14 Apr 2016 18:46:52 -0700 Subject: Fix razzle build breaks in bcl.win [tfs-changeset: 1596379] --- src/mscorlib/src/System/IO/Path.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mscorlib/src/System/IO/Path.cs b/src/mscorlib/src/System/IO/Path.cs index f8f19ed690..6f247c2c33 100644 --- a/src/mscorlib/src/System/IO/Path.cs +++ b/src/mscorlib/src/System/IO/Path.cs @@ -908,7 +908,7 @@ namespace System.IO { // Returns a cryptographically strong random 8.3 string that can be // used as either a folder name or a file name. -#if FEATURE_PAL +#if FEATURE_CORECLR [System.Security.SecuritySafeCritical] #endif public static String GetRandomFileName() -- cgit v1.2.3