From aca6da66f61f45c0e2b9e97111dd1ec0b8eb6491 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Mon, 16 Jun 2025 17:39:22 +0200 Subject: [PATCH] Set default seedCb when not FIPS --- wolfcrypt/src/random.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wolfcrypt/src/random.c b/wolfcrypt/src/random.c index da976e4a4..a6bb24dab 100644 --- a/wolfcrypt/src/random.c +++ b/wolfcrypt/src/random.c @@ -307,7 +307,11 @@ This library contains implementation for the random number generator. #ifdef WC_RNG_SEED_CB +#ifndef HAVE_FIPS +static wc_RngSeed_Cb seedCb = wc_GenerateSeed; +#else static wc_RngSeed_Cb seedCb = NULL; +#endif int wc_SetSeed_Cb(wc_RngSeed_Cb cb) {