Commit f59b5713 authored by Henrik Gramner's avatar Henrik Gramner Committed by Jean-Baptiste Kempf

tools: simplify get_seed on macOS

Only a number that changes on every run is required.
parent a52459b3
......@@ -55,9 +55,7 @@ static unsigned get_seed(void) {
static unsigned get_seed(void) {
#ifdef __APPLE__
mach_timebase_info_data_t info;
return (unsigned) (mach_absolute_time() * info.numer / info.denom);
return (unsigned) mach_absolute_time();
#elif defined(HAVE_CLOCK_GETTIME)
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment