Skip to content

Commit

Permalink
don't use obsolete managed SHA256 class
Browse files Browse the repository at this point in the history
  • Loading branch information
lbussell committed Jan 12, 2022
1 parent 9db397d commit 68226bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Microsoft.DotNet.Build.Tasks.Workloads/src/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public static Guid CreateUuid(Guid namespaceUuid, string name)
Buffer.BlockCopy(nameBytes, 0, hashBuffer, 16, nameBytes.Length);
byte[] hash;

using (SHA256 sha256 = new SHA256Managed())
using (SHA256 sha256 = SHA256.Create())
{
hash = sha256.ComputeHash(hashBuffer);
}
Expand Down

0 comments on commit 68226bd

Please sign in to comment.