Skip to content

Commit

Permalink
Fixed order of parameters in fread
Browse files Browse the repository at this point in the history
  • Loading branch information
Zach Collins committed Oct 29, 2022
1 parent d932582 commit 6ba5d96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/random.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Random
}

bool get(void* data, std::size_t size) {
return fread(data, size, 1, file) == size;
return fread(data, 1, size, file) == size;
}

private:
Expand Down

0 comments on commit 6ba5d96

Please sign in to comment.