Fixed documentation in folly/Random.h
authorPeter Goldsborough <psag@fb.com>
Mon, 5 Jun 2017 21:17:02 +0000 (14:17 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 5 Jun 2017 21:22:02 +0000 (14:22 -0700)
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

index a8682dc09bb4b0a1c5a2a10e77841475bbdaac46..52f1f17c39e0ab8a26f40c2420463d5a1416dc50 100644 (file)
@@ -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);
  * }