From 5b576860fa9b7d6edbd098cf508ff24490774952 Mon Sep 17 00:00:00 2001 From: David Vereb Date: Tue, 10 Mar 2020 16:59:48 -0400 Subject: [PATCH] Randomize. --- Problem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Problem.cpp b/Problem.cpp index a354fab..1d9b0f4 100644 --- a/Problem.cpp +++ b/Problem.cpp @@ -4,6 +4,7 @@ #include #include #include +#include bool Problem::seeded = false; @@ -14,8 +15,7 @@ Problem::Problem(PROBLEM_TYPE type, unsigned short max_digits, unsigned win_x, u // TODO(dev): Should this be in main.cpp? if(!seeded) { - // srand(time()); - srand(0); + srand(std::time(NULL)); setlocale(LC_NUMERIC, ""); // apostrophe to enable thousands separator in printf statements. seeded = true; }