diff options
author | Hamuko <hamuko@burakku.com> | 2016-10-06 02:11:22 +0300 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2016-10-30 17:04:51 +0100 |
commit | d544b777c3ae7e0caa2040f3896bba3ffbd95d34 (patch) | |
tree | 390e640ce813c2db1a6f8f41d21d5bc248abb65b /src/global.h | |
parent | cfce9aed08dbe9b2bd28c564ea336157b4f4dd17 (diff) |
Use mt19937 random number generator instad of the default one
Diffstat (limited to 'src/global.h')
-rw-r--r-- | src/global.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/global.h b/src/global.h index ed1f3cf9..2b2a8c59 100644 --- a/src/global.h +++ b/src/global.h @@ -22,6 +22,8 @@ #define NCMPCPP_GLOBAL_H #include <boost/date_time/posix_time/posix_time_types.hpp> +#include <random> + #include "mpdpp.h" #include "screen.h" @@ -58,6 +60,9 @@ extern std::string VolumeState; // global timer extern boost::posix_time::ptime Timer; +// global RNG +extern std::mt19937 RNG; + } #endif // NCMPCPP_GLOBAL_H |