Fixup for C90 mixed declarations.

Reported-by: Jonas Nick <jonasd.nick@gmail.com>
This commit is contained in:
Gregory Maxwell 2019-02-21 05:00:29 +00:00
parent 8b3841c91d
commit be40c4d0b5

View File

@ -4919,8 +4919,8 @@ int main(int argc, char **argv) {
} else { } else {
FILE *frand = fopen("/dev/urandom", "r"); FILE *frand = fopen("/dev/urandom", "r");
if ((frand == NULL) || fread(&seed16, 1, sizeof(seed16), frand) != sizeof(seed16)) { 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; 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[0] ^= t;
seed16[1] ^= t >> 8; seed16[1] ^= t >> 8;
seed16[2] ^= t >> 16; seed16[2] ^= t >> 16;