fix: sha1 hash generator now no longer always generates the same hash

This commit is contained in:
Michael Green
2023-05-16 14:44:33 +10:00
parent 5732c19ca4
commit be6e12be19

View File

@@ -41,6 +41,7 @@ namespace gaseous_tools
_md5hash = md5Hash;
var sha1 = SHA1.Create();
xmlStream.Position = 0;
byte[] sha1HashByte = sha1.ComputeHash(xmlStream);
string sha1Hash = BitConverter.ToString(sha1HashByte).Replace("-", "").ToLowerInvariant();
_sha1hash = sha1Hash;