Rosetta
Namespaces | Functions
init_random_generator.hh File Reference

Functions to initialize the random generator. More...

#include <string>
#include <basic/random/RandomGeneratorSettings.fwd.hh>

Namespaces

 basic
 Tags used to tag messeges sent by MPI functions used to decide whether a slave is requesting a new job id or flagging as job as being a bad input.
 
 basic::random
 

Functions

int basic::random::init_random_number_generators ()
 Initalize random number generators from the command line. More...
 
int basic::random::determine_random_number_seed (basic::random::RandomGeneratorSettings const &settings)
 Figure out what seed to use based on a variety of settings stored in the RandomGeneratorSettings object. More...
 
void basic::random::init_random_generators (int const start_seed, std::string const &RGtype)
 Initialize random generator systems (and send debug io to tracer with seed/mode info). More...
 

Detailed Description

Functions to initialize the random generator.

Author
Originally by Sergey Lyskov. @modified Moved to basic from core by Vikram K. Mulligan (vmull.nosp@m.igan.nosp@m.@flat.nosp@m.iron.nosp@m.insti.nosp@m.tute.nosp@m..org). Added multithreading support to ensure that all threads have unique random seeds.