Removed warning through #pragma

This commit is contained in:
Rick Falkvinge
2018-11-18 17:24:44 +01:00
parent d643a999b0
commit 7521279461
+3
View File
@@ -27,7 +27,10 @@ namespace Swarmops.Logic.Support
// Further, instantiate an AesCryptoServiceProvider to make sure the linker doesn't optimize it away -- apparently
// another known bug
#pragma warning disable 0219
System.Security.Cryptography.AesCryptoServiceProvider b = new System.Security.Cryptography.AesCryptoServiceProvider();
#pragma warning restore 0219
}
public static string GenerateSecureRandomKey(int byteCount)