From: Nicholas Ormrod <njormrod@fb.com>
Date: Fri, 26 Sep 2014 22:17:04 +0000 (-0700)
Subject: Rare bug fix
X-Git-Tag: v0.22.0~316
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b97197908f9ffa978dd9150a621c33b4f7ba4747;p=folly.git

Rare bug fix

Summary:
By the birthday paradox, this will fail about once every 8,100
runs. Dropping to 100 with cut that to 1 in 860,000.

Test Plan: fbconfig -r folly && fbmake runtests

Reviewed By: sdoroshenko@fb.com

Subscribers: sdwilsh, njormrod

FB internal diff: D1581238
---

diff --git a/folly/test/RandomTest.cpp b/folly/test/RandomTest.cpp
index c11bf6f9..15b50183 100644
--- a/folly/test/RandomTest.cpp
+++ b/folly/test/RandomTest.cpp
@@ -51,7 +51,7 @@ TEST(Random, Simple) {
 }
 
 TEST(Random, MultiThreaded) {
-  const int n = 1024;
+  const int n = 100;
   std::vector<uint32_t> seeds(n);
   std::vector<std::thread> threads;
   for (int i = 0; i < n; ++i) {