Skip to content

Commit

Permalink
Merge pull request #8357 from SparkiDev/entropy_memuse_apple_timer
Browse files Browse the repository at this point in the history
Entropy Apple: change time function called
  • Loading branch information
dgarske authored Jan 20, 2025
2 parents e76186f + 6e38354 commit 9819833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wolfcrypt/src/random.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9819833

Please sign in to comment.