From 6bcbfec2003be2dab21a70df956587bf513057c6 Mon Sep 17 00:00:00 2001 From: Kareem Date: Fri, 24 May 2024 12:57:34 -0700 Subject: [PATCH] Initalize RNG seed fd in _InitRng. --- wolfcrypt/src/random.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wolfcrypt/src/random.c b/wolfcrypt/src/random.c index 8ea106897..1e40401a8 100644 --- a/wolfcrypt/src/random.c +++ b/wolfcrypt/src/random.c @@ -894,6 +894,10 @@ static int _InitRng(WC_RNG* rng, byte* nonce, word32 nonceSz, } #endif +#ifndef USE_WINDOWS_API + rng->seed.fd = 0; +#endif + #ifdef CUSTOM_RAND_GENERATE_BLOCK ret = 0; /* success */ #else