From a6b10d84b12734b6cde0d94530b1e3e4635ce00a Mon Sep 17 00:00:00 2001 From: Peter Goldsborough Date: Mon, 5 Jun 2017 14:17:02 -0700 Subject: [PATCH] Fixed documentation in folly/Random.h Summary: The docs give `ThreadLocalPRNG rng = Random::threadLocalPRNG()` as an example of creating a thread local PRNG, but `Random::threadLocalPRNG()` does not/no longer exist. I think it's just `folly::ThreadLocalPRNG` right now. Reviewed By: yfeldblum Differential Revision: D5184992 fbshipit-source-id: 63a9ef62b32fca42088abec419ae53531910cc82 --- folly/Random.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/Random.h b/folly/Random.h index a8682dc0..52f1f17c 100644 --- a/folly/Random.h +++ b/folly/Random.h @@ -40,7 +40,7 @@ namespace folly { * However, if you are worried about performance, you can memoize the TLS * lookups that get the per thread state by manually using this class: * - * ThreadLocalPRNG rng = Random::threadLocalPRNG() + * ThreadLocalPRNG rng; * for (...) { * Random::rand32(rng); * } -- 2.34.1