Bitcoin Core 28.99.0
P2P Digital Currency
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, Span<std::byte> s) {
{ rng.rand64() } noexcept -> std::same_as<uint64_t>;
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 Span is an object that can refer to a contiguous sequence of objects.
Definition: span.h:98
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.