Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: giantcroc <[email protected]>
  • Loading branch information
giantcroc committed Mar 5, 2024
1 parent 895c54e commit dba5d95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/test_common/utility.cc
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ bool TestUtility::rawSlicesEqual(const Buffer::RawSlice* lhs, const Buffer::RawS
}

void TestUtility::feedBufferWithRandomCharacters(Buffer::Instance& buffer, uint64_t n_char,
uint64_t n_slice, uint64_t seed) {
uint64_t seed, uint64_t n_slice) {
const std::string sample = "Neque porro quisquam est qui dolorem ipsum..";
std::mt19937 generate(seed);
std::uniform_int_distribution<> distribute(1, sample.length() - 1);
Expand Down
4 changes: 2 additions & 2 deletions test/test_common/utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ class TestUtility {
* Feed a buffer with random characters.
* @param buffer supplies the buffer to be fed.
* @param n_char number of characters that should be added to the supplied buffer.
* @param n_slice number of slices (default = 1).
* @param seed seeds pseudo-random number generator (default = 0).
* @param n_slice number of slices (default = 1).
*/
static void feedBufferWithRandomCharacters(Buffer::Instance& buffer, uint64_t n_char,
uint64_t n_slice = 1, uint64_t seed = 0);
uint64_t seed = 0, uint64_t n_slice = 1);

/**
* Finds a stat in a vector with the given name.
Expand Down

0 comments on commit dba5d95

Please sign in to comment.