forked from lix-project/lix
Refactor concurrently added tests to use HashAlgorithm.
https://github.com/NixOS/nix/issues/8876
This commit is contained in:
parent
d38ec12855
commit
bbba2055f0
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue