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