From ba225e63aae0330c1fe3e5dd1f41b5b973f54bc9 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sat, 31 Aug 2024 19:28:51 -0500 Subject: [PATCH] updated build system --- support/include/utils/common.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }