libUTL++
RandUtils.h
1 #pragma once
2 
4 
5 // a hack for randutils on MinGW where std::this_thread may be absent (impl @ ubc/util.cpp)
6 #ifndef _GLIBCXX_HAS_GTHREADS
7 namespace std
8 {
9 struct this_thread
10 {
11  static size_t get_id();
12 };
13 }
14 #endif
15 
17 
18 #undef new
19 #include <libutl/randutils.hpp>
20 #include <libutl/gblnew_macros.h>
21 
23 
24 namespace randutils
25 {
26 using mt19937_32_rng = randutils::random_generator<std::mt19937>;
27 using mt19937_64_rng = randutils::random_generator<std::mt19937_64>;
28 }
Definition: RandUtils.h:7