gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-2191-ga4742ac
a Global And Modular Bsm Inference Tool
threadsafe_rng.hpp File Reference

A threadsafe interface to the STL random number generators. More...

#include <random>
#include "gambit/Utils/util_macros.hpp"
#include "gambit/Utils/util_types.hpp"
Include dependency graph for threadsafe_rng.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Gambit::Utils::threadsafe_rng
 Base class for thread-safe random number generators. More...
 
class  Gambit::Utils::specialised_threadsafe_rng< Engine >
 Derived thread-safe random number generator class, templated on the RNG engine type. More...
 
class  Gambit::Random
 

Namespaces

 Gambit
 TODO: see if we can use this one:
 
 Gambit::Utils
 

Detailed Description

A threadsafe interface to the STL random number generators.

The generator to use can be chosen in the ini/yaml file with option rng: name where name is one of the following: default_random_engine Default random engine minstd_rand Minimal Standard minstd_rand generator minstd_rand0 Minimal Standard minstd_rand0 generator mt19937 Mersenne Twister 19937 generator mt19937_64 Mersene Twister 19937 generator (64 bit) ranlux24_base Ranlux 24 base generator ranlux48_base Ranlux 48 base generator ranlux24 Ranlux 24 generator ranlux48 Ranlux 48 generator knuth_b Knuth-B generator


Authors (add name and date if you modify):

Author
Pat Scott (p.sco.nosp@m.tt@i.nosp@m.mperi.nosp@m.al.a.nosp@m.c.uk)
Date
2014 Dec
Author
Andy Buckley (andy..nosp@m.buck.nosp@m.ley@c.nosp@m.ern..nosp@m.ch)
Date
2017 Jun
Author
Ben Farmer (benja.nosp@m.min..nosp@m.farme.nosp@m.r@im.nosp@m.peria.nosp@m.l.ac.nosp@m..uk) 2018 Aug

Definition in file threadsafe_rng.hpp.