Commit 9855f626 authored by Albert Astals Cid's avatar Albert Astals Cid

Merge remote-tracking branch 'origin/Applications/19.08'

parents f39e7d76 be77f2fe
......@@ -62,6 +62,8 @@
#include <KLocalizedString>
#include <KMessageBox>
#include <chrono>
#include "kgoldrunner_debug.h"
// TODO - Can we change over to KScoreDialog?
......@@ -115,7 +117,9 @@ KGrGame::KGrGame (KGrView * theView,
connect(dyingTimer, &QTimer::timeout, this, &KGrGame::finalBreath);
// Initialise random number generator.
randomGen = new KRandomSequence (std::time(nullptr));
const auto tse = std::chrono::system_clock::now().time_since_epoch();
const long int seed = std::chrono::duration_cast<std::chrono::seconds>(tse).count();
randomGen = new KRandomSequence (seed);
scene->setReplayMessage (i18n("Click anywhere to begin live play"));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment