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; }