A PRNG with one instance per thread. This PRNG uses a mersenne twister random number generator and is seeded from /dev/urandom. It should not be used for anything which requires security, only for statistical randomness.
Declared in <folly/Random.h>
class ThreadLocalPRNG;
| Name | Description |
|---|---|
result_type | The unsigned integer type produced by this generator. |
| Name | Description |
|---|---|
operator() | Returns the next pseudorandom value from the thread-local generator. |
| Name | Description |
|---|---|
max | Returns the largest value the generator can produce. |
min | Returns the smallest value the generator can produce. |