Commit 8b4d6c36 authored by Niels Möller's avatar Niels Möller
Browse files

(get_dev_random): Bugfix: Actually try both

/dev/random and /dev/urandom.

Rev: src/lsh-make-seed.c:1.8
parent 66fe9add
......@@ -282,7 +282,7 @@ get_dev_random(struct yarrow256_ctx *ctx, enum source_type source)
for (i = 0; names[i]; i++)
fd = open("/dev/random", O_RDONLY);
fd = open(names[i], O_RDONLY);
if (fd >= 0)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment