DSPark 1.6.1
Header-only audio DSP framework in pure C++20 — zero dependencies
Loading...
Searching...
No Matches
dspark::AnalogRandom::Detail::Xoshiro256pp Class Reference

A compact xoshiro256++ PRNG implementation (non-threadsafe). More...

#include <AnalogRandom.h>

Public Member Functions

 Xoshiro256pp (std::uint64_t seed=1) noexcept
 
void reseed (std::uint64_t seed) noexcept
 
std::uint64_t next () noexcept
 
double next_double () noexcept
 

Public Attributes

std::uint64_t s [4]
 

Detailed Description

A compact xoshiro256++ PRNG implementation (non-threadsafe).

Definition at line 57 of file AnalogRandom.h.

Constructor & Destructor Documentation

◆ Xoshiro256pp()

dspark::AnalogRandom::Detail::Xoshiro256pp::Xoshiro256pp ( std::uint64_t  seed = 1)
inlineexplicitnoexcept

Definition at line 61 of file AnalogRandom.h.

Member Function Documentation

◆ next()

std::uint64_t dspark::AnalogRandom::Detail::Xoshiro256pp::next ( )
inlinenoexcept

Definition at line 75 of file AnalogRandom.h.

◆ next_double()

double dspark::AnalogRandom::Detail::Xoshiro256pp::next_double ( )
inlinenoexcept

Definition at line 88 of file AnalogRandom.h.

◆ reseed()

void dspark::AnalogRandom::Detail::Xoshiro256pp::reseed ( std::uint64_t  seed)
inlinenoexcept

Definition at line 66 of file AnalogRandom.h.

Member Data Documentation

◆ s

std::uint64_t dspark::AnalogRandom::Detail::Xoshiro256pp::s[4]

Definition at line 59 of file AnalogRandom.h.


The documentation for this class was generated from the following file: