mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
dbms: development [#CONV-2944].
This commit is contained in:
parent
dc79f25feb
commit
011af77a7f
@ -32,7 +32,7 @@ namespace detail
|
||||
void seed(drand48_data & rand_state)
|
||||
{
|
||||
struct timespec times;
|
||||
if (clock_gettime(CLOCK_MONOTONIC_RAW, ×))
|
||||
if (clock_gettime(CLOCK_THREAD_CPUTIME_ID, ×))
|
||||
throwFromErrno("Cannot clock_gettime.", ErrorCodes::CANNOT_CLOCK_GETTIME);
|
||||
|
||||
srand48_r(times.tv_nsec, &rand_state);
|
||||
|
Loading…
Reference in New Issue
Block a user