Skip to content

Instantly share code, notes, and snippets.

@okumura
Created March 11, 2011 22:24
Show Gist options
  • Save okumura/866684 to your computer and use it in GitHub Desktop.
Save okumura/866684 to your computer and use it in GitHub Desktop.
OpenSSL initialization
SSL_library_init();
SSL_load_error_strings();
RAND_poll();
while (RAND_status() == 0) {
unsigned short rand_ret = rand() % 65536;
RAND_seed(&rand_ret, sizeof(rand_ret));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment