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 d132926 commit 85b3085Copy full SHA for 85b3085
randombytes.c
@@ -174,6 +174,9 @@ static int randombytes_linux_wait_for_entropy(int device)
174
strategy = PROC;
175
// Open the entropy count file
176
proc_file = fopen("/proc/sys/kernel/random/entropy_avail", "r");
177
+ if (proc_file == NULL) {
178
+ return -1;
179
+ }
180
} else if (retcode != 0) {
181
// Unrecoverable ioctl error
182
return -1;
0 commit comments