Skip to content

Commit 6bcbfec

Browse files
Initalize RNG seed fd in _InitRng.
1 parent ea43bcb commit 6bcbfec

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
@@ -894,6 +894,10 @@ static int _InitRng(WC_RNG* rng, byte* nonce, word32 nonceSz,
894894
}
895895
#endif
896896

897+
#ifndef USE_WINDOWS_API
898+
rng->seed.fd = 0;
899+
#endif
900+
897901
#ifdef CUSTOM_RAND_GENERATE_BLOCK
898902
ret = 0; /* success */
899903
#else

0 commit comments

Comments
 (0)