Initalize RNG seed fd in _InitRng.

This commit is contained in:
Kareem
2024-05-24 12:57:34 -07:00
parent ea43bcba72
commit 6bcbfec200

View File

@@ -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