Skip to content

Commit

Permalink
Remove use of RAND_pseudo_bytes(), as it goes away in OpenSSL-1.1.x.
Browse files Browse the repository at this point in the history
  • Loading branch information
Castaglia committed May 26, 2016
1 parent a7972ab commit e280569
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/table.c
Expand Up @@ -363,9 +363,7 @@ static unsigned int tab_get_seed(void) {
#endif /* Not PR_USE_OPENSSL */

#ifdef PR_USE_OPENSSL
if (RAND_bytes((unsigned char *) &seed, sizeof(seed)) != 1) {
RAND_pseudo_bytes((unsigned char *) &seed, sizeof(seed));
}
RAND_bytes((unsigned char *) &seed, sizeof(seed));
#else
/* Try reading from /dev/urandom, if present */
fp = fopen("/dev/urandom", "rb");
Expand Down

0 comments on commit e280569

Please sign in to comment.