Update SSLContext to use folly::Random and discrete_distribution
authorNeel Goyal <ngoyal@fb.com>
Tue, 15 Dec 2015 14:35:14 +0000 (06:35 -0800)
committerfacebook-github-bot-4 <folly-bot@fb.com>
Tue, 15 Dec 2015 15:20:23 +0000 (07:20 -0800)
commitfbb8a926d8cc510a3ad870b96e1bd38b510034fd
treef7b138ae50cf5c27d24605d07f97ca909ddb696b
parent4a46ffa2a182e6d70c57abd97188f7698dfd7a50
Update SSLContext to use folly::Random and discrete_distribution

Summary:
Change next pick logic to use `std::discrete_distribution`.  Use folly::Random::DefaultGenerator as the generator.
Update the TARGETS to have sslcontext depend on random (which was the build break in D2741855)

Reviewed By: siyengar

Differential Revision: D2749166

fb-gh-sync-id: 7a6b400173b1e8c69a961f9e75e97d4777d5467a
folly/io/async/SSLContext.cpp
folly/io/async/SSLContext.h