sthen 89b0a826b7 urandom->arandom (aka, "stop my music skipping when I use drill").
ok jakob@; i'll work out something similar to send upstream.
2009-05-18 09:21:57 +00:00

13 lines
538 B
Plaintext

$OpenBSD: patch-util_c,v 1.1 2009/05/18 09:21:57 sthen Exp $
--- util.c.orig Mon May 18 09:45:00 2009
+++ util.c Mon May 18 09:45:14 2009
@@ -273,7 +273,7 @@ ldns_init_random(FILE *fd, unsigned int size)
seed = LDNS_XMALLOC(unsigned int, size);
if (!fd) {
- if ((rand_f = fopen("/dev/urandom", "r")) == NULL) {
+ if ((rand_f = fopen("/dev/arandom", "r")) == NULL) {
/* no readable /dev/urandom, try /dev/random */
if ((rand_f = fopen("/dev/random", "r")) == NULL) {
/* no readable /dev/random either, and no entropy