Monero
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
testing::internal::Random Class Reference

#include <gtest-internal.h>

Collaboration diagram for testing::internal::Random:
Collaboration graph
[legend]

Public Member Functions

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

Static Public Attributes

static const UInt32 kMaxRange = 1u << 31
 

Private Member Functions

 GTEST_DISALLOW_COPY_AND_ASSIGN_ (Random)
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (Random)
 

Private Attributes

UInt32 state_
 

Constructor & Destructor Documentation

◆ Random() [1/2]

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

◆ Random() [2/2]

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

Member Function Documentation

◆ Generate() [1/2]

UInt32 Random::Generate ( UInt32  range)

◆ Generate() [2/2]

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

◆ GTEST_DISALLOW_COPY_AND_ASSIGN_() [1/2]

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

◆ GTEST_DISALLOW_COPY_AND_ASSIGN_() [2/2]

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

◆ Reseed() [1/2]

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

◆ Reseed() [2/2]

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

Member Data Documentation

◆ kMaxRange

static const UInt32 Random::kMaxRange = 1u << 31
static

◆ state_

UInt32 Random::state_
private

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