X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=blobdiff_plain;f=folly%2FRandom.h;h=e74d64b14dcf441c944483092f7a6b8491fb4f2d;hp=3cb553da66d5e9d9ce34d7c5f2be57b9fdfffc80;hb=9b2b633c860eebda93c28ae387c50f1f81e29211;hpb=f2987ecd74d921af398f7592762fbf1ec67bab1a diff --git a/folly/Random.h b/folly/Random.h index 3cb553da..e74d64b1 100644 --- a/folly/Random.h +++ b/folly/Random.h @@ -1,5 +1,5 @@ /* - * Copyright 2016 Facebook, Inc. + * Copyright 2017 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,10 +17,13 @@ #pragma once #define FOLLY_RANDOM_H_ -#include +#include +#include #include -#include +#include + #include +#include #if FOLLY_HAVE_EXTRANDOM_SFMT19937 #include @@ -40,7 +43,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); * } @@ -291,6 +294,6 @@ inline uint32_t randomNumberSeed() { return Random::rand32(); } -} +} // namespace folly #include