We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f13f4c commit 5896a3aCopy full SHA for 5896a3a
cpp/test/version_core_run_test.cpp
@@ -12,6 +12,8 @@
12
13
#include <boost/core/lightweight_test.hpp>
14
15
+std::mt19937 mtx(std::int32_t s) { return std::mt19937(s); }
16
+std::mt19937_64 mtx(std::int64_t s) { return std::mt19937_64(s); }
17
int main()
18
{
19
BOOST_TEST(true);
@@ -195,8 +197,7 @@ int main()
195
197
base_vals.push_back(a);
196
198
}
199
std::vector<versioned::version_core<int>> test_vals = base_vals;
- std::shuffle(
- test_vals.begin(), test_vals.end(), std::mt19937(732601397511647));
200
+ std::shuffle(test_vals.begin(), test_vals.end(), mtx(732601397511647));
201
std::sort(test_vals.begin(), test_vals.end());
202
for (std::size_t i = 0; i < base_vals.size(); ++i)
203
0 commit comments