summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-18 20:34:04 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-18 20:41:06 +0300
commitb5fead8f53a555b62c9de2dc23b0f2ce9a136e8e (patch)
treeb4b3be6ca5dec68b68cabf83dd21626b70707c08 /src/client.cpp
parent5b293feb5367ccabd3edf49783511c895807876b (diff)
downloadplus-b5fead8f53a555b62c9de2dc23b0f2ce9a136e8e.tar.gz
plus-b5fead8f53a555b62c9de2dc23b0f2ce9a136e8e.tar.bz2
plus-b5fead8f53a555b62c9de2dc23b0f2ce9a136e8e.tar.xz
plus-b5fead8f53a555b62c9de2dc23b0f2ce9a136e8e.zip
Add custom rand function implimentation, based on precreated random sequence.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 07b35b6f8..7a550d80a 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -131,6 +131,7 @@
#include "utils/fuzzer.h"
#include "utils/gettext.h"
#include "utils/gettexthelper.h"
+#include "utils/mrand.h"
#ifdef ANDROID
#include "utils/paths.h"
#endif
@@ -243,6 +244,7 @@ void Client::testsInit()
}
else
{
+ initRand();
logger = new Logger;
Dirs::initLocalDataDir();
Dirs::initTempDir();
@@ -255,6 +257,8 @@ void Client::gameInit()
{
logger = new Logger;
+ initRand();
+
// Load branding information
if (!settings.options.brandingPath.empty())
branding.init(settings.options.brandingPath);