updated build system
This commit is contained in:
@ -114,9 +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::random_device rd{};
|
||||
thread_local std::mt19937 gen(
|
||||
static_cast<unsigned long>(std::time(nullptr) ^ rd()));
|
||||
thread_local std::mt19937 gen(static_cast<unsigned long>(
|
||||
std::time(nullptr) ^ std::random_device rd{}()));
|
||||
std::uniform_int_distribution<data_t> dis(begin, end);
|
||||
return dis(gen);
|
||||
}
|
||||
|
Reference in New Issue
Block a user