setting fixed debug seed for debug mode

This commit is contained in:
incredibleLeitman 2020-11-30 17:02:04 +01:00
parent 6bbdf004bd
commit 5729315c09

View File

@ -58,8 +58,11 @@ public:
{ {
std::list<Point> points; std::list<Point> points;
//srand(static_cast <unsigned> (time(0))); #ifdef _DEBUG
srand(static_cast <unsigned> (0)); // fixed seed for testing srand(static_cast <unsigned> (0)); // fixed seed for testing
#else
srand(static_cast <unsigned> (time(0)));
#endif
float x = 0; float x = 0;
float y = 0; float y = 0;