Skip to content

Commit

Permalink
Merge pull request #508 from devnexen/sunos_upd2
Browse files Browse the repository at this point in the history
util_rndThread allow solarish system to use arc4random api.
  • Loading branch information
robertswiecki committed Dec 26, 2023
2 parents 408ec90 + 01f0021 commit 10802df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libhfcommon/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ static __thread pthread_once_t rndThreadOnce = PTHREAD_ONCE_INIT;
static __thread uint64_t rndState[2];

static void util_rndInitThread(void) {
#if defined(BSD)
#if defined(BSD) || defined(__sun)
arc4random_buf((void*)rndState, sizeof(rndState));
return;
#elif defined(_HF_ARCH_LINUX) && defined(__NR_getrandom)
Expand Down

0 comments on commit 10802df

Please sign in to comment.