mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Fixed tests
This commit is contained in:
parent
10293acafb
commit
b536b27e15
@ -5,6 +5,7 @@
|
||||
#ifdef NDEBUG
|
||||
|
||||
#include <pcg_random.hpp>
|
||||
#include <base/getThreadId.h>
|
||||
|
||||
/** Same as libcxx std::__debug_less. Just without dependency on private part of standard library.
|
||||
* Check that Comparator induce strict weak ordering.
|
||||
@ -47,7 +48,7 @@ using ComparatorWrapper = DebugLessComparator<Comparator>;
|
||||
template <typename RandomIt, typename Compare>
|
||||
void shuffleItemsInEqualRanges(RandomIt first, RandomIt last, Compare compare)
|
||||
{
|
||||
static pcg64 rng(randomSeed());
|
||||
static pcg64 rng(getThreadId());
|
||||
|
||||
bool equal_range_started = false;
|
||||
RandomIt equal_range_start_it;
|
||||
@ -113,7 +114,6 @@ void partial_sort(RandomIt first, RandomIt middle, RandomIt last, Compare compar
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
template <typename RandomIt>
|
||||
void partial_sort(RandomIt first, RandomIt middle, RandomIt last)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user