diff options
-rw-r--r-- | src/extra_tests/fuzzers/jigs/driver.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/extra_tests/fuzzers/jigs/driver.h b/src/extra_tests/fuzzers/jigs/driver.h index aea7274a1..3eab8623d 100644 --- a/src/extra_tests/fuzzers/jigs/driver.h +++ b/src/extra_tests/fuzzers/jigs/driver.h @@ -13,6 +13,7 @@ #include <stdlib.h> // for setenv #include <botan/exceptn.h> #include <botan/rng.h> +#include <botan/chacha.h> using namespace Botan; @@ -68,11 +69,9 @@ int main(int argc, char* argv[]) #endif -#endif - // Some helpers for the fuzzer jigs -Botan::RandomNumberGenerator& fuzzer_rng() +inline Botan::RandomNumberGenerator& fuzzer_rng() { class ChaCha20_RNG : public Botan::RandomNumberGenerator { @@ -118,3 +117,5 @@ Botan::RandomNumberGenerator& fuzzer_rng() << __LINE__ << ":" << __FILE__ << std::endl; \ abort(); \ } } while(0) + +#endif |