Electroneum
testing::internal::Random Class Reference

#include <gtest-internal.h>

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
 

Detailed Description

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

Constructor & Destructor Documentation

◆ Random() [1/2]

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

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

756 : state_(seed) {}

◆ Random() [2/2]

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

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

756 : state_(seed) {}

Member Function Documentation

◆ Generate() [1/2]

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

◆ Generate() [2/2]

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

◆ Reseed() [1/2]

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

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

758 { state_ = seed; }

◆ Reseed() [2/2]

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

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

758 { state_ = seed; }

Member Data Documentation

◆ kMaxRange

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

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


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