diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-10-10 20:56:50 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-10-10 20:56:50 -0500 |
commit | d66db18c06aca961ffee68c87a29747d82123cdc (patch) | |
tree | b0a03d0d63db7b7ca46205107b0d9763145a6760 /tests | |
parent | Merge pull request #5969 (diff) | |
parent | unit_tests: fix build with boost 1.69 (diff) | |
download | monero-d66db18c06aca961ffee68c87a29747d82123cdc.tar.xz |
Merge pull request #5978
77afe91 unit_tests: fix build with boost 1.69 (moneromooo-monero)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit_tests/net.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/unit_tests/net.cpp b/tests/unit_tests/net.cpp index 253280d4d..262541bd2 100644 --- a/tests/unit_tests/net.cpp +++ b/tests/unit_tests/net.cpp @@ -893,7 +893,8 @@ TEST(dandelionpp_map, empty) TEST(dandelionpp_map, zero_stems) { std::vector<boost::uuids::uuid> connections{6}; - std::generate(connections.begin(), connections.end(), boost::uuids::random_generator{}); + for (auto &c: connections) + c = boost::uuids::random_generator{}(); net::dandelionpp::connection_map mapper{connections, 0}; EXPECT_EQ(mapper.begin(), mapper.end()); @@ -917,7 +918,8 @@ TEST(dandelionpp_map, zero_stems) TEST(dandelionpp_map, dropped_connection) { std::vector<boost::uuids::uuid> connections{6}; - std::generate(connections.begin(), connections.end(), boost::uuids::random_generator{}); + for (auto &c: connections) + c = boost::uuids::random_generator{}(); std::sort(connections.begin(), connections.end()); // select 3 of 6 outgoing connections @@ -953,7 +955,8 @@ TEST(dandelionpp_map, dropped_connection) } std::map<boost::uuids::uuid, boost::uuids::uuid> mapping; std::vector<boost::uuids::uuid> in_connections{9}; - std::generate(in_connections.begin(), in_connections.end(), boost::uuids::random_generator{}); + for (auto &c: in_connections) + c = boost::uuids::random_generator{}(); { std::map<boost::uuids::uuid, std::size_t> used; std::multimap<boost::uuids::uuid, boost::uuids::uuid> inverse_mapping; |