Skip to content

Commit

Permalink
Refactor concurrently added tests to use HashAlgorithm.
Browse files Browse the repository at this point in the history
  • Loading branch information
kolloch committed Dec 6, 2023
1 parent d38ec12 commit bbba205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/libutil-support/tests/hash.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ using namespace nix;

Gen<Hash> Arbitrary<Hash>::arbitrary()
{
Hash hash(htSHA1);
Hash hash(HashAlgorithm::SHA1);
for (size_t i = 0; i < hash.hashSize; ++i)
hash.hash[i] = *gen::arbitrary<uint8_t>();
return gen::just(hash);
Expand Down

0 comments on commit bbba205

Please sign in to comment.