Use mt19937 random number generator instad of the default one

This commit is contained in:
Hamuko
2016-10-06 02:11:22 +03:00
committed by Andrzej Rybczak
parent cfce9aed08
commit d544b777c3
7 changed files with 26 additions and 12 deletions

View File

@@ -89,7 +89,6 @@ int main(int argc, char **argv)
using Global::VolumeState;
using Global::Timer;
srand(time(nullptr));
std::setlocale(LC_ALL, "");
std::locale::global(Charset::internalLocale());
@@ -131,6 +130,9 @@ int main(int argc, char **argv)
// initialize global timer
Timer = boost::posix_time::microsec_clock::local_time();
// initialize global random number generator
Global::RNG.seed(std::random_device()());
// initialize playlist
myPlaylist->switchTo();