diff --git a/cpp/src/arrow/chunked_array_test.cc b/cpp/src/arrow/chunked_array_test.cc index 2f2e635c2c682..13028ffe18b57 100644 --- a/cpp/src/arrow/chunked_array_test.cc +++ b/cpp/src/arrow/chunked_array_test.cc @@ -551,7 +551,7 @@ class TestChunkResolverMany : public ::testing::Test { logical_index_vec.push_back(index); } // ...and sprinkle some extreme logical index values. - std::uniform_int_distribution position_gen(0, logical_index_vec.size() - 1); + std::uniform_int_distribution position_gen(0, logical_index_vec.size() - 1); for (int i = 0; i < 2; i++) { auto max_valid_index = std::min(kMaxValidIndex, static_cast(chunked_array_len));