From a86777edf9244c48350b50f0a636c58fc4f0c603 Mon Sep 17 00:00:00 2001 From: Gaspard Petit Date: Tue, 31 May 2022 17:35:34 -0400 Subject: [PATCH] Fix for undefined symbol: testing::internal::Random::kMaxRange --- googletest/src/gtest.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc index 1acad59a..e268230a 100644 --- a/googletest/src/gtest.cc +++ b/googletest/src/gtest.cc @@ -372,6 +372,8 @@ GTEST_DEFINE_string_( namespace testing { namespace internal { +const uint32_t Random::kMaxRange; + // Generates a random number from [0, range), using a Linear // Congruential Generator (LCG). Crashes if 'range' is 0 or greater // than kMaxRange.