RandLib 2.0.0
Probability distributions, fitting, and heavy-tail tools for C++20
Loading...
Searching...
No Matches
seeding.hpp File Reference
#include <randlib/engine/pcg.hpp>
#include <randlib/engine/splitmix64.hpp>
#include <randlib/engine/xoshiro.hpp>
#include <chrono>
#include <concepts>
#include <cstddef>
#include <cstdint>
#include <functional>
#include <random>
#include <thread>
#include <vector>
Include dependency graph for seeding.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  randlib
 

Typedefs

using randlib::DefaultEngine = Xoshiro256pp
 The engine used by default, including by the per-instance engines of the distributions.
 

Functions

std::uint64_t randlib::random_seed ()
 
template<class Engine = DefaultEngine>
Engine randlib::seed_from (std::seed_seq &sequence)
 
template<class Engine = DefaultEngine>
std::vector< Engine > randlib::make_streams (std::uint64_t seed, std::size_t count)
 Engines for parallel simulations, one per thread: consecutive jump() calls for engines that have them (non-overlapping by construction), distinct PCG streams for Pcg32 and Pcg64, and seeds derived with SplitMix64 for any other engine.