Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
a86777ed
Commit
a86777ed
authored
May 31, 2022
by
Gaspard Petit
Browse files
Fix for undefined symbol: testing::internal::Random::kMaxRange
parent
548b13dc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
googletest/src/gtest.cc
googletest/src/gtest.cc
+2
-0
No files found.
googletest/src/gtest.cc
View file @
a86777ed
...
@@ -372,6 +372,8 @@ GTEST_DEFINE_string_(
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment