Skip to content

Commit

Permalink
Initalize RNG seed fd in _InitRng.
Browse files Browse the repository at this point in the history
  • Loading branch information
kareem-wolfssl committed May 24, 2024
1 parent 625ba8f commit 288b63c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wolfcrypt/src/random.c
Original file line number Diff line number Diff line change
Expand Up @@ -1652,6 +1652,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
Expand Down

0 comments on commit 288b63c

Please sign in to comment.