Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
random.cpp
Go to the documentation of this file.
1// Copyright (c) 2020-present The Bitcoin Core developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5#include <random.h>
7#include <test/fuzz/fuzz.h>
8#include <test/fuzz/util.h>
9
10#include <algorithm>
11#include <cstdint>
12#include <string>
13#include <vector>
14
Fast randomness source.
Definition random.h:386
T ConsumeIntegralInRange(T min, T max)
static constexpr uint64_t max() noexcept
Definition random.h:375
static constexpr uint64_t min() noexcept
Definition random.h:374
#define FUZZ_TARGET(...)
Definition fuzz.h:35
uint256 ConsumeUInt256(FuzzedDataProvider &fuzzed_data_provider) noexcept
Definition util.h:167
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
Definition time.h:73
FuzzedDataProvider & fuzzed_data_provider
Definition fees.cpp:38