diff --git a/be/src/olap/rowset/rowset_meta.cpp b/be/src/olap/rowset/rowset_meta.cpp index c9851cdc5fc64b..0da212ea8812d4 100644 --- a/be/src/olap/rowset/rowset_meta.cpp +++ b/be/src/olap/rowset/rowset_meta.cpp @@ -229,7 +229,7 @@ void RowsetMeta::set_segments_key_bounds(const std::vector& segment int32_t truncation_threshold = config::segments_key_bounds_truncation_threshold; if (config::random_segments_key_bounds_truncation) { - static thread_local std::mt19937 generator(std::random_device {}()); + std::mt19937 generator(std::random_device {}()); std::uniform_int_distribution distribution(-10, 40); truncation_threshold = distribution(generator); }