diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2025-09-17 17:52:51 -0400 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2025-09-17 17:52:51 -0400 |
| commit | 79dcefa5002f6411e05169a226ae9e3cd1114bd7 (patch) | |
| tree | 64d3c31850a7a0f9a57dcef75f385481fd9d8aef /benchmarks/include/file_util.h | |
| parent | 7c3fe4ea760f4773f0eb1a98ed3ba493a36015e2 (diff) | |
| parent | 601481ed0a8061a372900cfb6761e8de81651339 (diff) | |
| download | dynamic-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.h | 5 |
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; } |