From d700564b37a27fdd6cfccc9f2b99d565ee820545 Mon Sep 17 00:00:00 2001 From: Fabian Klemp Date: Tue, 16 Dec 2014 12:17:30 +0100 Subject: [PATCH] Initialized pseudo random generator. --- application.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application.cc b/application.cc index 5a35281..ff80cac 100644 --- a/application.cc +++ b/application.cc @@ -7,6 +7,8 @@ Application::Application() { void Application::init() { + // init random generator + std::srand(std::time(NULL)); // choose Level TODO: Choose this in a menu this->level = Level("1"); // Don't change this!