From b97197908f9ffa978dd9150a621c33b4f7ba4747 Mon Sep 17 00:00:00 2001 From: Nicholas Ormrod Date: Fri, 26 Sep 2014 15:17:04 -0700 Subject: [PATCH] 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 --- folly/test/RandomTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 seeds(n); std::vector threads; for (int i = 0; i < n; ++i) { -- 2.34.1