mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-26 21:22:00 +03:00
Fix use of removed std::random_shuffle
This commit is contained in:
parent
5a8a174f81
commit
7b29192c24
@ -69,7 +69,7 @@ UnitTest test_hash_map{[] {
|
||||
ref.push_back({key, value});
|
||||
map.insert({key, value});
|
||||
|
||||
std::random_shuffle(ref.begin(), ref.end());
|
||||
std::shuffle(ref.begin(), ref.end(), re);
|
||||
for (auto& elem : ref)
|
||||
{
|
||||
auto it = map.find(elem.first);
|
||||
@ -89,7 +89,7 @@ void do_profile(size_t count, StringView type)
|
||||
Vector<size_t> vec;
|
||||
for (size_t i = 0; i < count; ++i)
|
||||
vec.push_back(i);
|
||||
std::random_shuffle(vec.begin(), vec.end());
|
||||
std::shuffle(vec.begin(), vec.end(), re);
|
||||
|
||||
Map map;
|
||||
auto start = Clock::now();
|
||||
|
Loading…
Reference in New Issue
Block a user