dbms: development [#CONV-2944].

This commit is contained in:
Alexey Milovidov 2012-07-15 23:16:35 +00:00
parent dc79f25feb
commit 011af77a7f

View File

@ -32,7 +32,7 @@ namespace detail
void seed(drand48_data & rand_state)
{
struct timespec times;
if (clock_gettime(CLOCK_MONOTONIC_RAW, &times))
if (clock_gettime(CLOCK_THREAD_CPUTIME_ID, &times))
throwFromErrno("Cannot clock_gettime.", ErrorCodes::CANNOT_CLOCK_GETTIME);
srand48_r(times.tv_nsec, &rand_state);