diff --git a/support/include/utils/common.hpp b/support/include/utils/common.hpp index 4473fa21..b706e00b 100644 --- a/support/include/utils/common.hpp +++ b/support/include/utils/common.hpp @@ -114,7 +114,8 @@ inline auto generate_random_between(data_t begin, data_t end) -> data_t { throw std::range_error("end must be greater than begin"); } - std::mt19937 gen(std::random_device{}()); + std::random_device rd{}; + std::mt19937 gen(std::time(nullptr) ^ static_cast(rd())); std::uniform_int_distribution dis(begin, end); return dis(gen); }