proxygen
folly::detail::SeedData< RNG > Struct Template Reference

#include <Random-inl.h>

Public Member Functions

 SeedData ()
 

Public Attributes

std::array< uint32_t, stateSizeseedData
 

Static Public Attributes

static constexpr size_t stateSize = StateSizeT<RNG>::value
 

Detailed Description

template<class RNG>
struct folly::detail::SeedData< RNG >

Definition at line 61 of file Random-inl.h.

Constructor & Destructor Documentation

template<class RNG>
folly::detail::SeedData< RNG >::SeedData ( )
inline

Definition at line 62 of file Random-inl.h.

References folly::Random::secureRandom(), and uint32_t.

62  {
63  Random::secureRandom(seedData.data(), seedData.size() * sizeof(uint32_t));
64  }
static std::enable_if< std::is_integral< T >::value &&!std::is_same< T, bool >::value, T >::type secureRandom()
Definition: Random.h:112
std::array< uint32_t, stateSize > seedData
Definition: Random-inl.h:67

Member Data Documentation

template<class RNG>
std::array<uint32_t, stateSize> folly::detail::SeedData< RNG >::seedData

Definition at line 67 of file Random-inl.h.

Referenced by folly::Random::create(), and folly::Random::seed().

template<class RNG>
constexpr size_t folly::detail::SeedData< RNG >::stateSize = StateSizeT<RNG>::value
static

Definition at line 66 of file Random-inl.h.


The documentation for this struct was generated from the following file: