File tree 1 file changed +6
-2
lines changed
cpp/arcticdb/version/test
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,9 @@ TEST(SortIndex, Basic) {
28
28
}
29
29
30
30
auto copy = keys_and_slices;
31
- std::random_shuffle (std::begin (keys_and_slices), std::end (keys_and_slices));
31
+ std::random_device rd;
32
+ std::mt19937 g (rd ());
33
+ std::shuffle (std::begin (keys_and_slices), std::end (keys_and_slices), g);
32
34
const auto version_id = VersionId{0 };
33
35
34
36
const IndexPartialKey& partial_key{stream_id, version_id};
@@ -69,7 +71,9 @@ TEST(SortIndex, Nonzero) {
69
71
keys_and_slices.emplace_back (SliceAndKey{slice, key});
70
72
}
71
73
72
- std::random_shuffle (std::begin (keys_and_slices), std::end (keys_and_slices));
74
+ std::random_device rd;
75
+ std::mt19937 g (rd ());
76
+ std::shuffle (std::begin (keys_and_slices), std::end (keys_and_slices), g);
73
77
const auto version_id = VersionId{0 };
74
78
75
79
const IndexPartialKey& partial_key{stream_id, version_id};
You can’t perform that action at this time.
0 commit comments