diff options
Diffstat (limited to 'src/ncmpcpp.cpp')
-rw-r--r-- | src/ncmpcpp.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ncmpcpp.cpp b/src/ncmpcpp.cpp index 111b3e82..7a4a1668 100644 --- a/src/ncmpcpp.cpp +++ b/src/ncmpcpp.cpp @@ -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(); |