diff --git a/NumberGenerator.h b/NumberGenerator.h index 6cb6d7a..dca6093 100644 --- a/NumberGenerator.h +++ b/NumberGenerator.h @@ -58,8 +58,11 @@ public: { std::list points; - //srand(static_cast (time(0))); +#ifdef _DEBUG srand(static_cast (0)); // fixed seed for testing +#else + srand(static_cast (time(0))); +#endif float x = 0; float y = 0;