diff --git a/src/bench/strencodings.cpp b/src/bench/strencodings.cpp index a0767b495fe..7d4e188730a 100644 --- a/src/bench/strencodings.cpp +++ b/src/bench/strencodings.cpp @@ -3,7 +3,8 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include -#include +#include +#include #include #include @@ -11,7 +12,8 @@ static void HexStrBench(benchmark::Bench& bench) { - auto const& data = benchmark::data::block413567; + FastRandomContext rng{/*fDeterministic=*/true}; + auto data{rng.randbytes(MAX_BLOCK_WEIGHT)}; bench.batch(data.size()).unit("byte").run([&] { auto hex = HexStr(data); ankerl::nanobench::doNotOptimizeAway(hex);