From 75212794613bef44b602949d596a6de9ccf796be Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 18 Nov 2018 17:24:44 +0100 Subject: [PATCH] Removed warning through #pragma --- Logic/Support/General.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Logic/Support/General.cs b/Logic/Support/General.cs index 64ffe2e6..4b90df5b 100644 --- a/Logic/Support/General.cs +++ b/Logic/Support/General.cs @@ -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)