folly: randomNumberSeed should be random wrt multiple threads
Summary: Right now, it relies on process id rather than on thread id. Thus, it can return the same seed when called from multiple threads over really short period of time, and these unlucky threads will end up with identical "random" sequences. Test Plan: newly added test fails against trunk, passes against changes in the diff Reviewed By: tudorb@fb.com FB internal diff: D548129
Showing
folly/test/RandomTest.cpp
0 → 100644
Please register or sign in to comment