Some Cleanups

This commit is contained in:
hondacrx
2021-06-07 18:06:16 -04:00
parent cb7640e3c6
commit 302a1f293c
53 changed files with 382 additions and 477 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ namespace Game
var hash = sha.ComputeHash(data, 0, (int)length);
uint checkSum = 0;
for (byte i = 0; i < 5; ++i)
checkSum = checkSum ^ BitConverter.ToUInt32(hash, i * 4);
checkSum ^= BitConverter.ToUInt32(hash, i * 4);
return checkSum;
}
+1 -1
View File
@@ -31,7 +31,7 @@ namespace Game
o1 = sh.ComputeHash(buff, 0, halfSize);
sh = SHA1.Create();
o2 = sh.ComputeHash(span.Slice(halfSize).ToArray(), 0, buff.Length - halfSize);
o2 = sh.ComputeHash(span[halfSize..].ToArray(), 0, buff.Length - halfSize);
FillUp();
}