diff options
Diffstat (limited to 'protocols/Telegram/tdlib/td/tdutils/test/hashset_benchmark.cpp')
-rw-r--r-- | protocols/Telegram/tdlib/td/tdutils/test/hashset_benchmark.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/Telegram/tdlib/td/tdutils/test/hashset_benchmark.cpp b/protocols/Telegram/tdlib/td/tdutils/test/hashset_benchmark.cpp index f07f58c8f0..dbfcaa992b 100644 --- a/protocols/Telegram/tdlib/td/tdutils/test/hashset_benchmark.cpp +++ b/protocols/Telegram/tdlib/td/tdutils/test/hashset_benchmark.cpp @@ -1,5 +1,5 @@ // -// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2022 +// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2023 // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -17,6 +17,7 @@ #include "td/utils/Slice.h" #include "td/utils/Span.h" #include "td/utils/StringBuilder.h" +#include "td/utils/tests.h" #include "td/utils/Time.h" #include "td/utils/VectorQueue.h" @@ -204,7 +205,7 @@ static void BM_Get(benchmark::State &state) { } std::size_t key_i = 0; - td::random_shuffle(td::as_mutable_span(keys), rnd); + td::rand_shuffle(td::as_mutable_span(keys), rnd); auto next_key = [&] { key_i++; if (key_i == data.size()) { |