From 2085d8474db99d8f2de70169db5d03ae6cd69ec3 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Mon, 20 Jun 2022 15:43:13 +0900 Subject: [PATCH] Fix warning --- BTCPayServer.Hwi/Deployment/HwiVersions.cs | 2 +- BTCPayServer.Vault/Version.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BTCPayServer.Hwi/Deployment/HwiVersions.cs b/BTCPayServer.Hwi/Deployment/HwiVersions.cs index 9d4f6f4..0073db6 100644 --- a/BTCPayServer.Hwi/Deployment/HwiVersions.cs +++ b/BTCPayServer.Hwi/Deployment/HwiVersions.cs @@ -89,7 +89,7 @@ private static string GetFileHash(string processName) using (var stream = File.Open(processName, FileMode.Open, FileAccess.Read)) using (var bufferedStream = new BufferedStream(stream, 1024 * 32)) { - var sha = new SHA256Managed(); + var sha = SHA256.Create(); checksum = sha.ComputeHash(bufferedStream); } return Encoders.Hex.EncodeData(checksum); diff --git a/BTCPayServer.Vault/Version.csproj b/BTCPayServer.Vault/Version.csproj index 5ec3743..06b64e7 100644 --- a/BTCPayServer.Vault/Version.csproj +++ b/BTCPayServer.Vault/Version.csproj @@ -1,5 +1,5 @@  - 2.0.3 + 2.0.4