Skip to content

Commit

Permalink
Change SSLContext to use a ThreadLocalPRNG
Browse files Browse the repository at this point in the history
Summary:Use a ThreadLocalPRNG insteaad of a per context RNG.  This avoids
calls to Random::seed on context creation which can get expensive
when many are created in an application.

Reviewed By: siyengar

Differential Revision: D3105501

fb-gh-sync-id: 92d987c27a1f190a98035ca25c23b994ca915007
fbshipit-source-id: 92d987c27a1f190a98035ca25c23b994ca915007
  • Loading branch information
ngoyal authored and Facebook Github Bot 7 committed Mar 29, 2016
1 parent 1284f12 commit 8fc5437
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wangle/ssl/TLSTicketKeyManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
*/
#include <wangle/ssl/TLSTicketKeyManager.h>

#include <wangle/ssl/SSLStats.h>
#include <wangle/ssl/SSLUtil.h>

#include <folly/Random.h>
#include <folly/String.h>
#include <folly/io/async/AsyncTimeout.h>
#include <openssl/aes.h>
#include <openssl/rand.h>
#include <openssl/ssl.h>
#include <folly/io/async/AsyncTimeout.h>
#include <wangle/ssl/SSLStats.h>
#include <wangle/ssl/SSLUtil.h>

#ifdef SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB
using std::string;
Expand Down

0 comments on commit 8fc5437

Please sign in to comment.