Skip to content

Commit

Permalink
Fix unit test with updated implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
HermanSchoenfeld committed Sep 9, 2024
1 parent 7718b38 commit 4620ab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Hydrogen.Tests/Crypto/HashRandomTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void GeneratesCorrectly([Values(CHF.SHA2_256, CHF.Blake2b_128)] CHF chf)
var expected = new ByteArrayBuilder();
var lastValue = seed;
for (var i = 0; i < TotalHashIterations; i++) {
var nextHash = Hashers.Hash(chf, lastValue);
var nextHash = Hashers.Hash(chf, Tools.Array.Concat<byte>(lastValue, EndianBitConverter.Little.GetBytes((long)i)));
expected.Append(nextHash);
lastValue = nextHash;
}
Expand Down

0 comments on commit 4620ab1

Please sign in to comment.