LIEF: Library to Instrument Executable Formats Version 1.0.0
Loading...
Searching...
No Matches
frozen::linear_congruential_engine< UIntType, a, c, m > Class Template Reference

#include <random.h>

Public Types

using result_type = UIntType

Public Member Functions

 linear_congruential_engine ()=default
constexpr linear_congruential_engine (result_type s)
void seed (result_type s=default_seed)
constexpr result_type operator() ()
constexpr void discard (unsigned long long n)

Static Public Member Functions

static constexpr result_type min ()
static constexpr result_type max ()

Static Public Attributes

static constexpr result_type multiplier = a
static constexpr result_type increment = c
static constexpr result_type modulus = m
static constexpr result_type default_seed = 1u

Member Typedef Documentation

◆ result_type

template<class UIntType, UIntType a, UIntType c, UIntType m>
using frozen::linear_congruential_engine< UIntType, a, c, m >::result_type = UIntType

Constructor & Destructor Documentation

◆ linear_congruential_engine() [1/2]

template<class UIntType, UIntType a, UIntType c, UIntType m>
frozen::linear_congruential_engine< UIntType, a, c, m >::linear_congruential_engine ( )
default

◆ linear_congruential_engine() [2/2]

template<class UIntType, UIntType a, UIntType c, UIntType m>
frozen::linear_congruential_engine< UIntType, a, c, m >::linear_congruential_engine ( result_type s)
inlineconstexpr

Member Function Documentation

◆ discard()

template<class UIntType, UIntType a, UIntType c, UIntType m>
void frozen::linear_congruential_engine< UIntType, a, c, m >::discard ( unsigned long long n)
inlineconstexpr

◆ max()

template<class UIntType, UIntType a, UIntType c, UIntType m>
constexpr result_type frozen::linear_congruential_engine< UIntType, a, c, m >::max ( )
inlinestaticconstexpr

◆ min()

template<class UIntType, UIntType a, UIntType c, UIntType m>
constexpr result_type frozen::linear_congruential_engine< UIntType, a, c, m >::min ( )
inlinestaticconstexpr

◆ operator()()

template<class UIntType, UIntType a, UIntType c, UIntType m>
result_type frozen::linear_congruential_engine< UIntType, a, c, m >::operator() ( )
inlineconstexpr

◆ seed()

template<class UIntType, UIntType a, UIntType c, UIntType m>
void frozen::linear_congruential_engine< UIntType, a, c, m >::seed ( result_type s = default_seed)
inline

Member Data Documentation

◆ default_seed

template<class UIntType, UIntType a, UIntType c, UIntType m>
result_type frozen::linear_congruential_engine< UIntType, a, c, m >::default_seed = 1u
staticconstexpr

◆ increment

template<class UIntType, UIntType a, UIntType c, UIntType m>
result_type frozen::linear_congruential_engine< UIntType, a, c, m >::increment = c
staticconstexpr

◆ modulus

template<class UIntType, UIntType a, UIntType c, UIntType m>
result_type frozen::linear_congruential_engine< UIntType, a, c, m >::modulus = m
staticconstexpr

◆ multiplier

template<class UIntType, UIntType a, UIntType c, UIntType m>
result_type frozen::linear_congruential_engine< UIntType, a, c, m >::multiplier = a
staticconstexpr

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