Remove global init of ThreadLocal in Random
authorSubodh Iyengar <subodh@fb.com>
Wed, 15 Oct 2014 23:51:46 +0000 (16:51 -0700)
committerdcsommer <dcsommer@fb.com>
Fri, 17 Oct 2014 18:44:13 +0000 (11:44 -0700)
commita4eda9d3a960b35fbf1d5a3d4ac028a604637313
tree0d23b6d08fa75a9954e350892eb97f9e6f4406c6
parent187cf0a0dadb9d1837aceea5030aad7914cd8646
Remove global init of ThreadLocal in Random

Summary:
Remove global initialization of ThreadLocal in Random
See https://gcc.gnu.org/onlinedocs/gcc-4.8.3/gcc/Thread-Local.html

Static initializers and thread locals don't mix well, and we're seeing
some crashes which we think might be related to this.

Test Plan: Unit tests

Reviewed By: seanc@fb.com

Subscribers: trunkagent, seanc, njormrod

FB internal diff: D1617455
folly/Random.cpp