net6: warning SYSLIB0021

This commit is contained in:
Anton Suhorukov 2021-10-01 13:28:15 +03:00
parent 0f833ae1de
commit 6988c4f997

View File

@ -65,7 +65,7 @@ namespace System
{
var bytes = Encoding.Unicode.GetBytes(str);
using var CSP = new MD5CryptoServiceProvider();
using var CSP = MD5.Create();
var byteHash = CSP.ComputeHash(bytes);