proxygen
|
#include <folly/Random.h>
#include <algorithm>
#include <random>
#include <thread>
#include <unordered_set>
#include <vector>
#include <glog/logging.h>
#include <folly/portability/GTest.h>
Go to the source code of this file.
Functions | |
TEST (Random, StateSize) | |
TEST (Random, Simple) | |
TEST (Random, FixedSeed) | |
TEST (Random, MultiThreaded) | |
TEST (Random, sanity) | |
TEST (Random, SecureFork) | |
Definition at line 31 of file RandomTest.cpp.
References EXPECT_EQ.
TEST | ( | Random | , |
Simple | |||
) |
Definition at line 44 of file RandomTest.cpp.
References EXPECT_NE, i, folly::randomNumberSeed(), seed, and uint32_t.
TEST | ( | Random | , |
FixedSeed | |||
) |
Definition at line 52 of file RandomTest.cpp.
References EXPECT_EQ, i, max, min, folly::Random::rand32(), uint32_t, and folly::value().
TEST | ( | Random | , |
MultiThreaded | |||
) |
Definition at line 81 of file RandomTest.cpp.
References EXPECT_LT, i, folly::randomNumberSeed(), folly::pushmi::detail::t, and threads.
TEST | ( | Random | , |
sanity | |||
) |
Definition at line 98 of file RandomTest.cpp.
References EXPECT_EQ, i, folly::Random::rand32(), folly::Random::rand64(), rng, and folly::size().
TEST | ( | Random | , |
SecureFork | |||
) |
Definition at line 142 of file RandomTest.cpp.
References buffer(), EXPECT_EQ, EXPECT_NE, folly::Random::secureRandom(), and folly::detail::distributed_mutex::wait().