proxygen
fizz::RandomNumGenerator< T, typename > Struct Template Reference

#include <RandomGenerator.h>

Public Member Functions

T generateRandom ()
 

Detailed Description

template<typename T, typename = std::enable_if_t<std::is_integral<T>::value>>
struct fizz::RandomNumGenerator< T, typename >

Definition at line 29 of file RandomGenerator.h.

Member Function Documentation

template<typename T , typename = std::enable_if_t<std::is_integral<T>::value>>
T fizz::RandomNumGenerator< T, typename >::generateRandom ( )
inline

Fills a POD type T with random data.

Definition at line 33 of file RandomGenerator.h.

References random(), and T.

33  {
34  T random;
35  randombytes_buf(&random, sizeof(random));
36  return random;
37  }
#define T(v)
Definition: http_parser.c:233
Integral2 random(Integral1 low, Integral2 up)

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