Fix thread local random number generator static issue
authorDaniel Sommermann <dcsommer@fb.com>
Tue, 14 Oct 2014 23:39:00 +0000 (16:39 -0700)
committerdcsommer <dcsommer@fb.com>
Fri, 17 Oct 2014 18:42:52 +0000 (11:42 -0700)
commit651eb23ca2cfb7b64481f3091160cc8a1112dbc9
tree98c44eb89308b23105c2a29cc6c31311fecac617
parent8e1a61fac79b35d7fbcb18a82af2d6307850f889
Fix thread local random number generator static issue

Summary:
See https://gcc.gnu.org/onlinedocs/gcc-4.8.3/gcc/Thread-Local.html
Thanks to @subodh for finding the first instance of this problem in the
proxygen codebase.

Test Plan:
unit tests, tested proxygen unit tests on my laptop and I don't
get segfaults on program exit now.

Reviewed By: subodh@fb.com

Subscribers: trunkagent, doug, njormrod, subodh

FB internal diff: D1616149

Tasks: 5217022
folly/Random.cpp
folly/Random.h