DSPark 1.8.0
Header-only C++20 DSP for real-time and offline audio
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 80 of file AnalogRandom.h.

Constructor & Destructor Documentation

◆ Xoshiro256pp()

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

Definition at line 84 of file AnalogRandom.h.

Member Function Documentation

◆ next()

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

Definition at line 98 of file AnalogRandom.h.

◆ next_double()

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

Definition at line 111 of file AnalogRandom.h.

◆ reseed()

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

Definition at line 89 of file AnalogRandom.h.

Member Data Documentation

◆ s

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

Definition at line 82 of file AnalogRandom.h.


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