Index: base/rand_util.cc |
diff --git a/base/rand_util.cc b/base/rand_util.cc |
index 1525b91449d438089a67b89f23521941a80e4500..931eb4e943e646e2f39e2848b33683247b5b4725 100644 |
--- a/base/rand_util.cc |
+++ b/base/rand_util.cc |
@@ -5,6 +5,7 @@ |
#include "base/rand_util.h" |
#include <math.h> |
+#include <stdint.h> |
#include <algorithm> |
#include <limits> |
@@ -37,7 +38,7 @@ double BitsToOpenEndedUnitInterval(uint64 bits) { |
COMPILE_ASSERT(std::numeric_limits<double>::radix == 2, otherwise_use_scalbn); |
static const int kBits = std::numeric_limits<double>::digits; |
- uint64 random_bits = bits & ((GG_UINT64_C(1) << kBits) - 1); |
+ uint64 random_bits = bits & ((UINT64_C(1) << kBits) - 1); |
double result = ldexp(static_cast<double>(random_bits), -1 * kBits); |
DCHECK_GE(result, 0.0); |
DCHECK_LT(result, 1.0); |