mirror of https://github.com/wolfSSL/wolfssl.git
Entropy Apple: change time function called
Use clock_gettime_nsec_np and get the raw monotonic counter.pull/8357/head
parent
e76186f060
commit
6e383547dd
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue