diff options
author | Jack Lloyd <[email protected]> | 2016-12-09 08:45:32 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-12-09 08:45:32 -0500 |
commit | e6e1e1037704578d2b26d38869f4eb9eb5ea2a6e (patch) | |
tree | 65dbb9715e7dcb58853ba07bdcff9ba971937b3d /src/extra_tests/fuzzers/jigs | |
parent | b9de14fd8ce50064870d57e366ce99720ae9f4b8 (diff) |
Fix fuzzer builds [ci skip]
Diffstat (limited to 'src/extra_tests/fuzzers/jigs')
-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 |