Skip to content

Commit aca6da6

Browse files
committed
Set default seedCb when not FIPS
1 parent 37554a1 commit aca6da6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

wolfcrypt/src/random.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,11 @@ This library contains implementation for the random number generator.
307307

308308
#ifdef WC_RNG_SEED_CB
309309

310+
#ifndef HAVE_FIPS
311+
static wc_RngSeed_Cb seedCb = wc_GenerateSeed;
312+
#else
310313
static wc_RngSeed_Cb seedCb = NULL;
314+
#endif
311315

312316
int wc_SetSeed_Cb(wc_RngSeed_Cb cb)
313317
{

0 commit comments

Comments
 (0)