diff --git a/wolfcrypt/src/random.c b/wolfcrypt/src/random.c index febc29243f..c2838dc582 100644 --- a/wolfcrypt/src/random.c +++ b/wolfcrypt/src/random.c @@ -818,7 +818,7 @@ static WC_INLINE word64 Entropy_TimeHiRes(void) */ static WC_INLINE word64 Entropy_TimeHiRes(void) { - return mach_absolute_time(); + return clock_gettime_nsec_np(CLOCK_MONOTONIC_RAW); } #elif !defined(ENTROPY_MEMUSE_THREAD) && defined(__aarch64__) /* Get the high resolution time counter.