BICO  1.0
 All Classes Namespaces Files Functions Variables Typedefs Pages
randomness.h
Go to the documentation of this file.
1 #ifndef RANDOMNESS_H
2 #define RANDOMNESS_H
3 
4 #include <random>
5 #include <time.h>
6 
7 #include "randomgenerator.h"
8 
9 namespace CluE
10 {
17 {
18 private:
19  // TODO Use mt19937_64 ?
20  static std::mt19937 mt19937Generator;
21 
22 public:
24  {
26  }
27 
28  static void initialize(uint_fast32_t seed)
29  {
30  mt19937Generator = std::mt19937(seed);
31  }
32 };
33 
34 }
35 
36 #endif