use /dev/arandom instead of /dev/urandom. /dev/urandom is slow.

ok jasper@
This commit is contained in:
jakemsr 2009-03-23 07:29:18 +00:00
parent a47adbd039
commit 12fa88edfc
2 changed files with 14 additions and 1 deletions

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.31 2009/03/06 09:52:17 jasper Exp $
# $OpenBSD: Makefile,v 1.32 2009/03/23 07:29:18 jakemsr Exp $
COMMENT= high-performance CORBA Object Request Broker
GNOME_PROJECT= ORBit2
GNOME_VERSION= 2.14.17
PKGNAME= ${DISTNAME}p0
SHARED_LIBS += ORBit-2 3.0 # .1.0
SHARED_LIBS += ORBitCosNaming-2 3.0 # .1.0
SHARED_LIBS += ORBit-imodule-2 2.1 # .0.0

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_orb_util_genrand_c,v 1.1 2009/03/23 07:29:18 jakemsr Exp $
--- src/orb/util/genrand.c.orig Sun Mar 22 20:31:38 2009
+++ src/orb/util/genrand.c Sun Mar 22 20:31:48 2009
@@ -73,7 +73,7 @@ ORBit_genuid_init (ORBitGenUidType type)
switch (genuid_type) {
case ORBIT_GENUID_STRONG:
#ifndef G_OS_WIN32
- random_fd = open ("/dev/urandom", O_RDONLY);
+ random_fd = open ("/dev/arandom", O_RDONLY);
if (random_fd < 0)
random_fd = open ("/dev/random", O_RDONLY);