ClickHouse/src/Common/thread_local_rng.h

6 lines
186 B
C++
Raw Normal View History

2019-07-28 15:30:38 +00:00
#pragma once
#include <pcg_random.hpp>
/// Fairly good thread-safe random number generator, but probably slow-down thread creation a little.
extern thread_local pcg64 thread_local_rng;