/*
- * 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.
#pragma once
#define FOLLY_RANDOM_H_
-#include <type_traits>
+#include <array>
+#include <cstdint>
#include <random>
-#include <stdint.h>
+#include <type_traits>
+
#include <folly/Portability.h>
+#include <folly/Traits.h>
#if FOLLY_HAVE_EXTRANDOM_SFMT19937
#include <ext/random>
* 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);
* }