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 cd329db commit cddef0cCopy full SHA for cddef0c
src/tests.c
@@ -4919,6 +4919,7 @@ int main(int argc, char **argv) {
4919
} else {
4920
FILE *frand = fopen("/dev/urandom", "r");
4921
if ((frand == NULL) || fread(&seed16, sizeof(seed16), 1, frand) != sizeof(seed16)) {
4922
+ fprintf(stderr, "WARNING: could not read 16 bytes from /dev/urandom; falling back to insecure PRNG\n");
4923
uint64_t t = time(NULL) * (uint64_t)1337;
4924
seed16[0] ^= t;
4925
seed16[1] ^= t >> 8;
0 commit comments