Skip to content

Commit b795bab

Browse files
committed
Merge branch 'legacy' into legacy-1.1-dev
2 parents 1a7f38e + 69f2088 commit b795bab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mongo/platform/random_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ TEST(RandomTest, NextInt64SanityCheck) {
125125
for (int bit = 0; bit < 64; bit++) {
126126
int onesCount = 0;
127127
for (size_t i = 0; i != nums.size(); ++i) {
128-
int32_t num = nums[i];
128+
int64_t num = nums[i];
129129

130130
bool isSet = (num >> bit) & 1;
131131
if (isSet)
@@ -149,7 +149,7 @@ TEST(RandomTest, NextInt32InRange) {
149149
TEST(RandomTest, NextInt64InRange) {
150150
PseudoRandom a(11);
151151
for (int i = 0; i < 1000; i++) {
152-
int32_t res = a.nextInt64(10);
152+
int64_t res = a.nextInt64(10);
153153
ASSERT_GE(res, 0);
154154
ASSERT_LT(res, 10);
155155
}

0 commit comments

Comments
 (0)