MCPcopy Create free account
hub / github.com/ElementsProject/elements / MuHashPrecompute

Function MuHashPrecompute

src/bench/crypto_hash.cpp:142–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142static void MuHashPrecompute(benchmark::Bench& bench)
143{
144 MuHash3072 acc;
145 FastRandomContext rng(true);
146 std::vector<unsigned char> key{rng.randbytes(32)};
147
148 bench.run([&] {
149 MuHash3072{key};
150 });
151}
152
153BENCHMARK(RIPEMD160);
154BENCHMARK(SHA1);

Callers

nothing calls this directly

Calls 2

randbytesMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected