Skip to content

Commit 5896a3a

Browse files
committed
More picking of appropriate random generator based on int size.. and again.
1 parent 5f13f4c commit 5896a3a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cpp/test/version_core_run_test.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
#include <boost/core/lightweight_test.hpp>
1414

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); }
1517
int main()
1618
{
1719
BOOST_TEST(true);
@@ -195,8 +197,7 @@ int main()
195197
base_vals.push_back(a);
196198
}
197199
std::vector<versioned::version_core<int>> test_vals = base_vals;
198-
std::shuffle(
199-
test_vals.begin(), test_vals.end(), std::mt19937(732601397511647));
200+
std::shuffle(test_vals.begin(), test_vals.end(), mtx(732601397511647));
200201
std::sort(test_vals.begin(), test_vals.end());
201202
for (std::size_t i = 0; i < base_vals.size(); ++i)
202203
{

0 commit comments

Comments
 (0)