From 58dcf60365b4edca220f352b1fe74dc31e7f1776 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sat, 31 Aug 2024 19:41:05 -0500 Subject: [PATCH] updated build system --- support/include/utils/common.hpp | 4 ++-- support/test/src/test.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/support/include/utils/common.hpp b/support/include/utils/common.hpp index 365491cb..006ea367 100644 --- a/support/include/utils/common.hpp +++ b/support/include/utils/common.hpp @@ -114,8 +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"); } - thread_local std::mt19937 gen(static_cast( - std::time(nullptr) ^ std::random_device rd{}())); + thread_local std::mt19937 gen( + static_cast(std::time(nullptr) ^ std::random_device{}())); std::uniform_int_distribution dis(begin, end); return dis(gen); } diff --git a/support/test/src/test.cpp b/support/test/src/test.cpp index 3086778d..8c7cc0b0 100644 --- a/support/test/src/test.cpp +++ b/support/test/src/test.cpp @@ -65,7 +65,7 @@ auto create_random_file(std::size_t size) -> utils::file::i_file & { randombytes_buf(buf.data(), buf.size()); #else // !defined(PROJECT_ENABLE_LIBSODIUM) thread_local std::mt19937 gen(static_cast( - std::time(nullptr) ^ std::random_device rd{}())); + std::time(nullptr) ^ std::random_device{}())); std::uniform_int_distribution dis(0U, 255U); std::generate(buf.begin(), buf.end(), [&]() -> auto { return dis(gen); }); #endif // defined(PROJECT_ENABLE_LIBSODIUM)