openbsd-ports/mail/dovecot/patches/patch-src_lib_randgen_c
2009-05-04 11:40:40 +00:00

16 lines
380 B
Plaintext

$OpenBSD: patch-src_lib_randgen_c,v 1.3 2009/05/04 11:40:41 sthen Exp $
--- src/lib/randgen.c.orig Sun May 3 21:25:41 2009
+++ src/lib/randgen.c Sun May 3 21:27:14 2009
@@ -7,7 +7,11 @@
#ifdef HAVE_DEV_URANDOM
+#ifdef __OpenBSD__
+#define URANDOM_PATH "/dev/arandom"
+#else
#define URANDOM_PATH "/dev/urandom"
+#endif
#include "fd-close-on-exec.h"
#include <unistd.h>