1#ifndef XRPL_BASICS_HARDENED_HASH_H_INCLUDED
2#define XRPL_BASICS_HARDENED_HASH_H_INCLUDED
4#include <xrpl/beast/hash/hash_append.h>
5#include <xrpl/beast/hash/xxhasher.h>
29 state_t() : gen(rng())
37 return {state.dist(state.gen), state.dist(state.gen)};
72template <
class HashAlgorithm = beast::xxhasher>
Seed functor once per construction.
typename HashAlgorithm::result_type result_type
detail::seed_pair m_seeds
result_type operator()(T const &t) const noexcept
seed_pair make_seed_pair() noexcept
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
void hash_append(Hasher &h, Slice const &v)