Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
RandomNumberGenerator Concept Reference

A concept for RandomMixin-based random number generators. More...

#include <random.h>

Concept definition

template<typename T>
concept RandomNumberGenerator = requires(T& rng, std::span<std::byte> s) {
// A random number generator must provide rand64().
{ rng.rand64() } noexcept -> std::same_as<uint64_t>;
// A random number generator must derive from RandomMixin, which adds other rand* functions.
requires std::derived_from<std::remove_reference_t<T>, RandomMixin<std::remove_reference_t<T>>>;
}
Mixin class that provides helper randomness functions.
Definition random.h:175
A concept for RandomMixin-based random number generators.
Definition random.h:147
#define T(expected, seed, data)

Detailed Description

A concept for RandomMixin-based random number generators.

Definition at line 147 of file random.h.