Skip to content

Commit

Permalink
Fix port numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
szmyd committed Oct 2, 2023
1 parent 2931e08 commit 3763ecf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/tests/test_state_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@ void test_state_mgr::fill_data_vec(nuraft_mesg::io_blob_list_t& cli_buf) {
}
}

uint32_t test_state_mgr::get_random_num() {
uint16_t test_state_mgr::get_random_num() {
static std::random_device dev;
static std::mt19937 rng(dev());
std::uniform_int_distribution< std::mt19937::result_type > dist(1001u, 99999u);
std::uniform_int_distribution< std::mt19937::result_type > dist(1001u, 65535u);
return dist(rng);
}

Expand Down
2 changes: 1 addition & 1 deletion src/tests/test_state_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class test_state_mgr : public nuraft_mesg::mesg_state_mgr {

bool register_data_service_apis(nuraft_mesg::Manager* messaging);
static void fill_data_vec(nuraft_mesg::io_blob_list_t& cli_buf);
static uint32_t get_random_num();
static uint16_t get_random_num();
static uint32_t get_server_counter();
static void verify_data(sisl::io_blob const& buf);

Expand Down

0 comments on commit 3763ecf

Please sign in to comment.