Skip to content

Commit

Permalink
Fixup for C90 mixed declarations.
Browse files Browse the repository at this point in the history
Reported-by: Jonas Nick <jonasd.nick@gmail.com>
  • Loading branch information
gmaxwell committed Feb 21, 2019
1 parent 8b3841c commit be40c4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -4919,8 +4919,8 @@ int main(int argc, char **argv) {
} else {
FILE *frand = fopen("/dev/urandom", "r");
if ((frand == NULL) || fread(&seed16, 1, sizeof(seed16), frand) != sizeof(seed16)) {
fprintf(stderr, "WARNING: could not read 16 bytes from /dev/urandom; falling back to insecure PRNG\n");
uint64_t t = time(NULL) * (uint64_t)1337;
fprintf(stderr, "WARNING: could not read 16 bytes from /dev/urandom; falling back to insecure PRNG\n");
seed16[0] ^= t;
seed16[1] ^= t >> 8;
seed16[2] ^= t >> 16;
Expand Down

0 comments on commit be40c4d

Please sign in to comment.