make glib2 use /dev/arandom instead of /dev/urandom; ok jasper@

This commit is contained in:
djm 2007-09-13 10:51:13 +00:00
parent 68c39928bc
commit 122a32371a
2 changed files with 14 additions and 2 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.37 2007/09/10 19:13:33 jasper Exp $
# $OpenBSD: Makefile,v 1.38 2007/09/13 10:51:13 djm Exp $
COMMENT-main= general-purpose utility library
COMMENT-docs= glib2 documentation
VERSION= 2.12.13
DISTNAME= glib-${VERSION}
PKGNAME-main= glib2-${VERSION}
PKGNAME-main= glib2-${VERSION}p0
PKGNAME-docs= glib2-docs-${VERSION}
CATEGORIES= devel

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-glib_grand_c,v 1.1 2007/09/13 10:51:14 djm Exp $
--- glib/grand.c.orig Thu Sep 13 09:01:56 2007
+++ glib/grand.c Thu Sep 13 09:02:35 2007
@@ -173,7 +173,7 @@ g_rand_new (void)
do
{
errno = 0;
- dev_urandom = fopen("/dev/urandom", "rb");
+ dev_urandom = fopen("/dev/arandom", "rb");
}
while G_UNLIKELY (errno == EINTR);