Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
testing::internal::Random Class Reference

#include <JETSCAPE/blob/main/external_packages/googletest/googletest/include/gtest/internal/gtest-internal.h>

+ Collaboration diagram for testing::internal::Random:

Public Member Functions

 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)
 

Private Attributes

UInt32 state_
 

Detailed Description

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

View newest version in sPHENIX GitHub at line 752 of file gtest-internal.h

Constructor & Destructor Documentation

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

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

View newest version in sPHENIX GitHub at line 756 of file gtest-internal.h

Member Function Documentation

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

Definition at line 311 of file gtest.cc.

View newest version in sPHENIX GitHub at line 311 of file gtest.cc

References GTEST_CHECK_, kMaxRange, and state_.

Referenced by testing::internal::ShuffleRange().

+ Here is the caller graph for this function:

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

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

View newest version in sPHENIX GitHub at line 758 of file gtest-internal.h

References seed.

Referenced by testing::internal::UnitTestImpl::RunAllTests().

+ Here is the caller graph for this function:

Member Data Documentation

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

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

View newest version in sPHENIX GitHub at line 754 of file gtest-internal.h

Referenced by Generate().

UInt32 testing::internal::Random::state_
private

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

View newest version in sPHENIX GitHub at line 765 of file gtest-internal.h

Referenced by Generate().


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