Removed unnecessary Windows-only code for seeding openssl's RNG.

openssl seeds itself with CryptGenRandom on Windows in the same manner as /dev/(u)random on other OSes.
This commit is contained in:
Arnavion 2015-02-14 00:31:41 -08:00
parent a22816fbbd
commit bbb81af550
1 changed files with 0 additions and 9 deletions

View File

@ -106,15 +106,6 @@ _SSL_context_init (void (*info_cb_func))
/* used in SSL_connect(), SSL_accept() */ /* used in SSL_connect(), SSL_accept() */
SSL_CTX_set_info_callback (ctx, info_cb_func); SSL_CTX_set_info_callback (ctx, info_cb_func);
#ifdef WIN32
/* under win32, OpenSSL needs to be seeded with some randomness */
for (i = 0; i < 128; i++)
{
r = rand ();
RAND_seed ((unsigned char *)&r, sizeof (r));
}
#endif
return(ctx); return(ctx);
} }