[master] 2567e6f Use /dev/urandom, Linux kernels seems to be very short on entropy.
Poul-Henning Kamp
phk at FreeBSD.org
Mon Aug 29 11:21:09 CEST 2016
commit 2567e6f1c4bf1e81e6f6de7d5ae17273f599cf12
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Aug 29 09:20:03 2016 +0000
Use /dev/urandom, Linux kernels seems to be very short on entropy.
diff --git a/lib/libvarnish/vrnd.c b/lib/libvarnish/vrnd.c
index 3953a2a..fef31de 100644
--- a/lib/libvarnish/vrnd.c
+++ b/lib/libvarnish/vrnd.c
@@ -48,7 +48,7 @@ VRND_CryptoQuality(void *ptr, size_t len)
ssize_t l;
AN(ptr);
- fd = open("/dev/random", O_RDONLY);
+ fd = open("/dev/urandom", O_RDONLY);
if (fd < 0)
return (-1);
for (p = ptr; len > 0; len--, p++) {
More information about the varnish-commit
mailing list