Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
testing::internal::Random Class Reference

#include <gtest-internal.h>

Public Member Functions

 Random (uint32_t seed)
 
void Reseed (uint32_t seed)
 
uint32_t Generate (uint32_t range)
 

Static Public Attributes

static const uint32_t kMaxRange = 1u << 31
 

Private Member Functions

 GTEST_DISALLOW_COPY_AND_ASSIGN_ (Random)
 

Private Attributes

uint32_t state_
 

Detailed Description

Definition at line 862 of file gtest-internal.h.

Constructor & Destructor Documentation

testing::internal::Random::Random ( uint32_t  seed)
inlineexplicit

Definition at line 866 of file gtest-internal.h.

Member Function Documentation

void testing::internal::Random::Reseed ( uint32_t  seed)
inline

Definition at line 868 of file gtest-internal.h.

uint32_t testing::internal::Random::Generate ( uint32_t  range)

Definition at line 355 of file gtest.cc.

testing::internal::Random::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( Random  )
private

Member Data Documentation

const uint32_t testing::internal::Random::kMaxRange = 1u << 31
static

Definition at line 864 of file gtest-internal.h.

uint32_t testing::internal::Random::state_
private

Definition at line 875 of file gtest-internal.h.


The documentation for this class was generated from the following files: