We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c95f6f1 commit 82a96e4Copy full SHA for 82a96e4
src/tests.c
@@ -4913,7 +4913,7 @@ int main(int argc, char **argv) {
4913
}
4914
} else {
4915
FILE *frand = fopen("/dev/urandom", "r");
4916
- if ((frand == NULL) || !fread(&seed16, sizeof(seed16), 1, frand)) {
+ if ((frand == NULL) || fread(&seed16, sizeof(seed16), 1, frand) != sizeof(seed16)) {
4917
uint64_t t = time(NULL) * (uint64_t)1337;
4918
seed16[0] ^= t;
4919
seed16[1] ^= t >> 8;
0 commit comments