Rare bug fix
authorNicholas Ormrod <njormrod@fb.com>
Fri, 26 Sep 2014 22:17:04 +0000 (15:17 -0700)
committerDave Watson <davejwatson@fb.com>
Tue, 30 Sep 2014 23:15:51 +0000 (16:15 -0700)
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

folly/test/RandomTest.cpp

index c11bf6f9f6981444f1d109cd66a7536d641df180..15b50183709e22340254e0b067c86aa989ecdfad 100644 (file)
@@ -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) {