Have internal tests use folly::Random instead of rand_r
authorMichael Lee <mzlee@fb.com>
Thu, 3 Mar 2016 23:51:18 +0000 (15:51 -0800)
committerFacebook Github Bot 3 <facebook-github-bot-3-bot@fb.com>
Fri, 4 Mar 2016 00:05:26 +0000 (16:05 -0800)
commita1b77701d8619afc907ba0408d03aadecf852e02
tree2a8d738c1ce1ada583edea485f6f3845089d1477
parent863a22ada1d3e4603576c41578f4201300ec2c61
Have internal tests use folly::Random instead of rand_r

Summary: rand_r is not provided on all platforms, so use `folly::Random` instead.

Reviewed By: yfeldblum

Differential Revision: D3000351

fb-gh-sync-id: 45df3e1957c4b529ab2d2cb4db13b71d13dcef5d
shipit-source-id: 45df3e1957c4b529ab2d2cb4db13b71d13dcef5d
folly/test/SmallLocksTest.cpp
folly/test/SpinLockTest.cpp