diff --git a/gen.cpp b/gen.cpp index 8f787f6..6b603c7 100644 --- a/gen.cpp +++ b/gen.cpp @@ -1,10 +1,13 @@ #include "global.hpp" #include #include +#include + +using namespace std::chrono; vector generate(int N, int M) { - srand((unsigned)time(0)); + srand(duration_cast(system_clock::now().time_since_epoch()).count()); auto r = vector(N, 0); for(int n = 0; n < N; n++)