forgot to give entropy() some candy too
This commit is contained in:
parent
cd3c084957
commit
5e4dc85bb9
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user