Use SingletonThreadLocal in folly::Random
authorAndrii Grynenko <andrii@fb.com>
Thu, 1 Dec 2016 00:50:04 +0000 (16:50 -0800)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Thu, 1 Dec 2016 00:54:27 +0000 (16:54 -0800)
commit895c8a62d25a854afc1cbf9d1f6fba97ba1b9d83
treec75c1b064f1e340d0ca9846eca919e2777718d0f
parent4dd1dd685b0397a36b21a057f588191ac0cfe6c6
Use SingletonThreadLocal in folly::Random

Summary: folly::SingletonThreadLocal should be used for all thread-local singletons to avoid SDOF.

Reviewed By: yfeldblum

Differential Revision: D4253009

fbshipit-source-id: 5b4ca57a7a77b7b54c94630a2a29d13b84a3af27
folly/Random.cpp
folly/Random.h