From: Peter Goldsborough Date: Mon, 5 Jun 2017 21:17:02 +0000 (-0700) Subject: Fixed documentation in folly/Random.h X-Git-Tag: v2017.06.12.00~42 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=commitdiff_plain;h=a6b10d84b12734b6cde0d94530b1e3e4635ce00a 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 --- 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); * }