aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/rolling_median.cpp
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-08-19 17:31:39 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-08-19 17:31:39 -0500
commitf205d28e96ef86303475a57b3fea15d2ede8a752 (patch)
tree441fdb1de85bd9eaf60b65fbfbfe3019957bb224 /tests/unit_tests/rolling_median.cpp
parentMerge pull request #5725 (diff)
parentReplace std::random_shuffle with std::shuffle (diff)
downloadmonero-f205d28e96ef86303475a57b3fea15d2ede8a752.tar.xz
Merge pull request #5727
7b9a420 Replace std::random_shuffle with std::shuffle (tomsmeding)
Diffstat (limited to 'tests/unit_tests/rolling_median.cpp')
-rw-r--r--tests/unit_tests/rolling_median.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit_tests/rolling_median.cpp b/tests/unit_tests/rolling_median.cpp
index 547fe092f..9e4cf87b8 100644
--- a/tests/unit_tests/rolling_median.cpp
+++ b/tests/unit_tests/rolling_median.cpp
@@ -143,7 +143,7 @@ TEST(rolling_median, order)
m.insert(random[i]);
ASSERT_EQ(med, m.median());
- std::shuffle(random.begin(), random.end(), std::default_random_engine(crypto::rand<unsigned>()));
+ std::shuffle(random.begin(), random.end(), crypto::random_device{});
m.clear();
for (int i = 0; i < 1000; ++i)
m.insert(random[i]);