Commit 1a78cfb9 authored by Frederik Schwarzer's avatar Frederik Schwarzer

Use C++ time instead of C time.

parent 3916b794
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
#include <iostream> #include <iostream>
#include <stdlib.h> #include <stdlib.h>
#include <time.h> #include <ctime>
#include <QStringList> #include <QStringList>
#include <QTimer> #include <QTimer>
...@@ -115,7 +115,7 @@ KGrGame::KGrGame (KGrView * theView, ...@@ -115,7 +115,7 @@ KGrGame::KGrGame (KGrView * theView,
connect(dyingTimer, &QTimer::timeout, this, &KGrGame::finalBreath); connect(dyingTimer, &QTimer::timeout, this, &KGrGame::finalBreath);
// Initialise random number generator. // Initialise random number generator.
randomGen = new KRandomSequence (time (0)); randomGen = new KRandomSequence (std::time(nullptr));
qCDebug(KGOLDRUNNER_LOG) << "RANDOM NUMBER GENERATOR INITIALISED"; qCDebug(KGOLDRUNNER_LOG) << "RANDOM NUMBER GENERATOR INITIALISED";
scene->setReplayMessage (i18n("Click anywhere to begin live play")); 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