mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-04 13:14:45 +02:00
Entropy Apple: change time function called
Use clock_gettime_nsec_np and get the raw monotonic counter.
This commit is contained in:
@@ -818,7 +818,7 @@ static WC_INLINE word64 Entropy_TimeHiRes(void)
|
|||||||
*/
|
*/
|
||||||
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__)
|
#elif !defined(ENTROPY_MEMUSE_THREAD) && defined(__aarch64__)
|
||||||
/* Get the high resolution time counter.
|
/* Get the high resolution time counter.
|
||||||
|
Reference in New Issue
Block a user