Skip to content

Commit

Permalink
Fix indexing problem
Browse files Browse the repository at this point in the history
  • Loading branch information
sterrettm2 committed Oct 4, 2024
1 parent acae7cf commit 8d378c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/rand_array.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ static std::vector<T> get_array(std::string arrtype,
else {
val = std::numeric_limits<T>::max();
}
for (size_t ii = 1; ii <= arrsize; ++ii) {
for (size_t ii = 0; ii < arrsize; ++ii) {
if (rand() & 0x1) { arr[ii] = val; }
}
}
Expand Down

0 comments on commit 8d378c9

Please sign in to comment.