mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Refactor concurrently added tests to use HashAlgorithm.
https://github.com/NixOS/nix/issues/8876
This commit is contained in:
parent
d38ec12855
commit
bbba2055f0
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue