shithub: dav1d

Download patch

ref: f59b57139e699c32b64ff604591100330fc9e059
parent: a52459b3e5a924f9a79e9b76998dd9a87a52b79a
author: Henrik Gramner <gramner@twoorioles.com>
date: Fri Nov 22 21:29:34 EST 2019

tools: simplify get_seed on macOS

Only a number that changes on every run is required.

--- a/tests/checkasm/checkasm.c
+++ b/tests/checkasm/checkasm.c
@@ -55,9 +55,7 @@
 
 static unsigned get_seed(void) {
 #ifdef __APPLE__
-    mach_timebase_info_data_t info;
-    mach_timebase_info(&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);