Skip to content

Commit e2ff705

Browse files
Raghuveer Devulapallisterrettm2
authored andcommitted
Bug in rand_array.h
1 parent 84e1666 commit e2ff705

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/rand_array.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ static std::vector<T> get_array(std::string arrtype,
137137
val = std::numeric_limits<T>::max();
138138
}
139139
for (size_t ii = 1; ii <= arrsize; ++ii) {
140-
if (rand() % 0x1) { arr[ii] = val; }
140+
if (rand() & 0x1) { arr[ii] = val; }
141141
}
142142
}
143143
else {

0 commit comments

Comments
 (0)