From 94ab5b8b644f2ad45364f075fb13f695a4bd6cbc Mon Sep 17 00:00:00 2001 From: dongresource Date: Tue, 22 Sep 2020 20:32:40 +0200 Subject: [PATCH] Seed the random number generator. --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index de22839..d488434 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -86,6 +86,7 @@ int main() { #else initsignals(); #endif + srand(getTime()); settings::init(); std::cout << "[INFO] OpenFusion v" GIT_VERSION << std::endl; std::cout << "[INFO] Protocol version: " << PROTOCOL_VERSION << std::endl;