forgot to give entropy() some candy too

This commit is contained in:
Ali H. Fardan 2016-08-31 06:10:53 +03:00
parent cd3c084957
commit 5e4dc85bb9

View file

@ -252,7 +252,8 @@ entropy(void)
FILE *fp = fopen("/proc/sys/kernel/random/entropy_avail", "r"); FILE *fp = fopen("/proc/sys/kernel/random/entropy_avail", "r");
if (fp == NULL) { if (fp == NULL) {
fprintf(stderr, "Could not open entropy file.\n"); fprintf(stderr, "Could not open entropy file: %s\n",
strerror(errno));
return smprintf(UNKNOWN_STR); return smprintf(UNKNOWN_STR);
} }