mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
Merge pull request #8357 from SparkiDev/entropy_memuse_apple_timer
Entropy Apple: change time function called
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user