Skip to content

Commit

Permalink
Duplicate code removed
Browse files Browse the repository at this point in the history
  • Loading branch information
anhu authored and julek-wolfssl committed Aug 5, 2024
1 parent b61836f commit 52922ee
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions wolfcrypt/src/random.c
Original file line number Diff line number Diff line change
Expand Up @@ -3913,17 +3913,6 @@ int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz)

#define USE_TEST_GENSEED

#elif defined(WOLFSSL_MAXQ108X) || defined(WOLFSSL_MAXQ1065)

/* getrandom() was added to the Linux kernel in version 3.17.
* Added to glibc in version 2.25. */
int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz)
{
(void)os;

return maxq10xx_random(output, sz);
}

#elif defined(NO_DEV_RANDOM)

/* Allow bare-metal targets to use cryptoCb as seed provider */
Expand Down

0 comments on commit 52922ee

Please sign in to comment.