Fix for undefined symbol: testing::internal::Random::kMaxRange

This commit is contained in:
Gaspard Petit 2022-05-31 17:35:34 -04:00
parent 548b13dc3c
commit a86777edf9

View File

@ -372,6 +372,8 @@ GTEST_DEFINE_string_(
namespace testing { namespace testing {
namespace internal { namespace internal {
const uint32_t Random::kMaxRange;
// Generates a random number from [0, range), using a Linear // Generates a random number from [0, range), using a Linear
// Congruential Generator (LCG). Crashes if 'range' is 0 or greater // Congruential Generator (LCG). Crashes if 'range' is 0 or greater
// than kMaxRange. // than kMaxRange.