#include <gtest-internal.h>
Definition at line 735 of file gtest-internal.h.
◆ Random()
testing::internal::Random::Random |
( |
UInt32 | seed | ) |
|
|
inlineexplicit |
◆ Generate()
Definition at line 319 of file gtest.cc.
319 {
320
321
322 state_ =
static_cast<UInt32>(1103515245ULL*state_ + 12345U) %
kMaxRange;
323
325 << "Cannot generate a number in the range [0, 0).";
327 << "Generation of a number in [0, " << range << ") was requested, "
328 <<
"but this can only generate numbers in [0, " <<
kMaxRange <<
").";
329
330
331
332
333 return state_ % range;
334}
static const UInt32 kMaxRange
#define GTEST_CHECK_(condition)
TypeWithSize< 4 >::UInt UInt32
◆ Reseed()
void testing::internal::Random::Reseed |
( |
UInt32 | seed | ) |
|
|
inline |
◆ kMaxRange
const UInt32 testing::internal::Random::kMaxRange = 1u << 31 |
|
static |
The documentation for this class was generated from the following files:
- libraries/fc/include/fc/crypto/webauthn_json/thirdparty/gtest/googletest/include/gtest/internal/gtest-internal.h
- libraries/fc/include/fc/crypto/webauthn_json/thirdparty/gtest/googletest/src/gtest.cc