summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-09-30 18:00:09 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-01-13 03:39:32 +0100
commitc149d9ac2492cecbd1ba336f231157f69413942b (patch)
tree9aa071b54b9e34639e8e39e15e48cc6773956aa7 /src/main.cpp
parent2017-09-24 (diff)
downloadAltCraft-c149d9ac2492cecbd1ba336f231157f69413942b.tar
AltCraft-c149d9ac2492cecbd1ba336f231157f69413942b.tar.gz
AltCraft-c149d9ac2492cecbd1ba336f231157f69413942b.tar.bz2
AltCraft-c149d9ac2492cecbd1ba336f231157f69413942b.tar.lz
AltCraft-c149d9ac2492cecbd1ba336f231157f69413942b.tar.xz
AltCraft-c149d9ac2492cecbd1ba336f231157f69413942b.tar.zst
AltCraft-c149d9ac2492cecbd1ba336f231157f69413942b.zip
Diffstat (limited to '')
-rw-r--r--src/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 4130bf3..aa7383d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -4,6 +4,8 @@
#include "ThreadRender.hpp"
#include "ThreadNetwork.hpp"
+#include <set>
+
const char *getTimeSinceProgramStart(void) {
static auto initialTime = std::chrono::steady_clock().now();
auto now = std::chrono::steady_clock().now();
@@ -18,6 +20,7 @@ INITIALIZE_EASYLOGGINGPP
#undef main
int main(int argc, char** argv) {
+ srand(time(0));
el::Configurations loggerConfiguration;
el::Helpers::installCustomFormatSpecifier(
el::CustomFormatSpecifier("%startTime", std::bind(getTimeSinceProgramStart)));