From b9d3d6abce7e4fed16e925d0d084c5dfa95bf562 Mon Sep 17 00:00:00 2001 From: itsafuu Date: Mon, 4 Dec 2023 09:09:24 -0500 Subject: [PATCH] Changed a few uniform_int_distribution from uint8_t to uint32_t because uint8_t is not supported by the function. Only windows seems to complain about this. --- test/src/verification/finality/vote_tracker_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/src/verification/finality/vote_tracker_test.cpp b/test/src/verification/finality/vote_tracker_test.cpp index a01610b6..b07f82e9 100644 --- a/test/src/verification/finality/vote_tracker_test.cpp +++ b/test/src/verification/finality/vote_tracker_test.cpp @@ -40,7 +40,7 @@ TEST_F(VoteTrackerTest, TestVotePush) { t_block_number1_ += 1; std::random_device rd; - std::uniform_int_distribution dist1(0, 255); + std::uniform_int_distribution dist1(0, 255); //crypto::ED25519Signature signature; //for (auto& byte : signature.bytes) { @@ -104,7 +104,7 @@ TEST_F(VoteTrackerTest, TestVoteEquivocatory) { BlockNumber t_block_number_ = 1u; std::random_device rd; - std::uniform_int_distribution dist1(0, 255); + std::uniform_int_distribution dist1(0, 255); // weight range std::uniform_int_distribution wt_dist(1, 6); @@ -167,7 +167,7 @@ TEST_F(VoteTrackerTest, TestVoteOrdering) { BlockNumber t_block_number_ = 1u; std::random_device rd; - std::uniform_int_distribution dist1(0, 255); + std::uniform_int_distribution dist1(0, 255); // weight range std::uniform_int_distribution wt_dist(1, 6); @@ -210,7 +210,7 @@ TEST_F(VoteTrackerTest, TestMedianMessage) { BlockNumber t_block_number_ = 1u; std::random_device rd; - std::uniform_int_distribution dist1(0, 255); + std::uniform_int_distribution dist1(0, 255); // weight range std::uniform_int_distribution wt_dist(1, 6);