Skip to content

Commit

Permalink
plugins: rename label
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Wiberg <[email protected]>
  • Loading branch information
troglobit committed Mar 12, 2024
1 parent d6fb2ed commit 7967907
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/urandom.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ static void setup(void *arg)
len = fread(buf, sizeof(buf[0]), sizeof(buf), hw);
if (len == 0) {
fclose(hw);
goto fallback;
goto no_hwrng;
}

len = fwrite(buf, sizeof(buf[0]), len, fp);
fclose(hw);
} else {
struct timeval tv;
int iter = 128;
fallback:
no_hwrng:
gettimeofday(&tv, NULL);
srandom(tv.tv_sec % 3600);
while (iter--) {
Expand Down

0 comments on commit 7967907

Please sign in to comment.