From f482d0e366a84008129913b442f0c955de79ac93 Mon Sep 17 00:00:00 2001 From: brunoerg Date: Thu, 5 Sep 2024 17:52:32 -0300 Subject: [PATCH] fuzz: reduce number of iterations in `crypto_aeadchacha20poly1305` target By reducing the number of iterations we improve the performance of this target and may increase coverage. --- src/test/fuzz/crypto_chacha20poly1305.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/fuzz/crypto_chacha20poly1305.cpp b/src/test/fuzz/crypto_chacha20poly1305.cpp index 5e62e6f3df6..0700ba7fb6b 100644 --- a/src/test/fuzz/crypto_chacha20poly1305.cpp +++ b/src/test/fuzz/crypto_chacha20poly1305.cpp @@ -39,7 +39,7 @@ FUZZ_TARGET(crypto_aeadchacha20poly1305) // data). InsecureRandomContext rng(provider.ConsumeIntegral()); - LIMITED_WHILE(provider.ConsumeBool(), 10000) + LIMITED_WHILE(provider.ConsumeBool(), 100) { // Mode: // - Bit 0: whether to use single-plain Encrypt/Decrypt; otherwise use a split at prefix.