Bayeux  3.4.1
Core Foundation library for SuperNEMO
Static Public Member Functions | Static Public Attributes | List of all members
mygsl::random_utils Class Reference

#include <bayeux/mygsl/random_utils.h>

Static Public Member Functions

static bool is_valid_seed (int32_t)
 Check if a given seed is valid. More...
 

Static Public Attributes

static const int32_t SEED_INVALID = -1
 Constant that represents an invalid seed value. More...
 
static const int32_t SEED_AUTO = 0
 Constant that represents a seed that must be automatically initialized from some external 'random' source. More...
 
static const int32_t SEED_TIME = 0
 Constant that represents a seed that must be initialized from some external 'random' source like the current time, the process ID or the /dev/urandom source (or combinaison of them) More...
 
static const int32_t SEED_MAX = 0x7FFFFFFF
 Constant that represents the maximum allowed seed value. More...
 

Detailed Description

A class that hosts useful constants related to the management of pseudo-random number generators (PRNG)

Member Function Documentation

◆ is_valid_seed()

static bool mygsl::random_utils::is_valid_seed ( int32_t  )
static

Check if a given seed is valid.

Member Data Documentation

◆ SEED_AUTO

const int32_t mygsl::random_utils::SEED_AUTO = 0
static

Constant that represents a seed that must be automatically initialized from some external 'random' source.

◆ SEED_INVALID

const int32_t mygsl::random_utils::SEED_INVALID = -1
static

Constant that represents an invalid seed value.

◆ SEED_MAX

const int32_t mygsl::random_utils::SEED_MAX = 0x7FFFFFFF
static

Constant that represents the maximum allowed seed value.

◆ SEED_TIME

const int32_t mygsl::random_utils::SEED_TIME = 0
static

Constant that represents a seed that must be initialized from some external 'random' source like the current time, the process ID or the /dev/urandom source (or combinaison of them)


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