Skip to content

Commit

Permalink
Changed a few uniform_int_distribution from uint8_t to uint32_t becau…
Browse files Browse the repository at this point in the history
…se uint8_t is not supported by the function. Only windows seems to complain about this.
  • Loading branch information
itsafuu committed Dec 4, 2023
1 parent b4f4f15 commit b9d3d6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/src/verification/finality/vote_tracker_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ TEST_F(VoteTrackerTest, TestVotePush) {
t_block_number1_ += 1;

std::random_device rd;
std::uniform_int_distribution<uint8_t> dist1(0, 255);
std::uniform_int_distribution<uint32_t> dist1(0, 255);

//crypto::ED25519Signature signature;
//for (auto& byte : signature.bytes) {
Expand Down Expand Up @@ -104,7 +104,7 @@ TEST_F(VoteTrackerTest, TestVoteEquivocatory) {
BlockNumber t_block_number_ = 1u;

std::random_device rd;
std::uniform_int_distribution<uint8_t> dist1(0, 255);
std::uniform_int_distribution<uint32_t> dist1(0, 255);

// weight range
std::uniform_int_distribution<int> wt_dist(1, 6);
Expand Down Expand Up @@ -167,7 +167,7 @@ TEST_F(VoteTrackerTest, TestVoteOrdering) {
BlockNumber t_block_number_ = 1u;

std::random_device rd;
std::uniform_int_distribution<uint8_t> dist1(0, 255);
std::uniform_int_distribution<uint32_t> dist1(0, 255);

// weight range
std::uniform_int_distribution<int> wt_dist(1, 6);
Expand Down Expand Up @@ -210,7 +210,7 @@ TEST_F(VoteTrackerTest, TestMedianMessage) {
BlockNumber t_block_number_ = 1u;

std::random_device rd;
std::uniform_int_distribution<uint8_t> dist1(0, 255);
std::uniform_int_distribution<uint32_t> dist1(0, 255);

// weight range
std::uniform_int_distribution<int> wt_dist(1, 6);
Expand Down

0 comments on commit b9d3d6a

Please sign in to comment.