summaryrefslogtreecommitdiffstats
path: root/benchmarks/include/file_util.h
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2025-09-17 17:52:51 -0400
committerDouglas Rumbaugh <dbr4@psu.edu>2025-09-17 17:52:51 -0400
commit79dcefa5002f6411e05169a226ae9e3cd1114bd7 (patch)
tree64d3c31850a7a0f9a57dcef75f385481fd9d8aef /benchmarks/include/file_util.h
parent7c3fe4ea760f4773f0eb1a98ed3ba493a36015e2 (diff)
parent601481ed0a8061a372900cfb6761e8de81651339 (diff)
downloaddynamic-extension-79dcefa5002f6411e05169a226ae9e3cd1114bd7.tar.gz
Merge branch 'new-concurrency' of github.com:dbrumbaugh/dynamic-extension-working into new-concurrency
Diffstat (limited to 'benchmarks/include/file_util.h')
-rw-r--r--benchmarks/include/file_util.h5
1 files changed, 4 insertions, 1 deletions
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 <gsl/gsl_rng.h>
#include <iostream>
#include <memory>
+#include <random>
#include <sstream>
#include <string>
#include <type_traits>
@@ -214,7 +215,9 @@ static std::vector<R> 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;
}