Electroneum
Loading...
Searching...
No Matches
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) {}
Here is the caller graph for this function:

◆ 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)
Here is the call graph for this function:

◆ Generate() [2/2]

UInt32 testing::internal::Random::Generate ( UInt32 range)
Here is the call graph for this function:

◆ 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

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 files:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-internal.h
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/tests/gtest/include/gtest/internal/gtest-internal.h