From 911eb0ef61dc7d327507c6406120a80797190884 Mon Sep 17 00:00:00 2001 From: "Douglas B. Rumbaugh" Date: Tue, 12 Aug 2025 13:25:50 -0400 Subject: file_util.h: Swapped from random_shuffle to shuffle --- benchmarks/include/file_util.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/benchmarks/include/file_util.h b/benchmarks/include/file_util.h index 2d340e6..ef7e464 100644 --- a/benchmarks/include/file_util.h +++ b/benchmarks/include/file_util.h @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -214,7 +215,9 @@ static std::vector generate_uniform(size_t n) { records[i].value = i; } - std::random_shuffle(records.begin(), records.end()); + std::random_device rd; + std::mt19937 g(rd()); + std::shuffle(records.begin(), records.end(), g); return records; } -- cgit v1.2.3