mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 00:08:07 +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…
Reference in a new issue