no need to use /dev/arandom on OpenBSD

This commit is contained in:
naddy 2017-10-27 19:59:07 +00:00
parent 272d9dee04
commit 2bec75f245
2 changed files with 19 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.19 2014/01/01 20:46:28 naddy Exp $
# $OpenBSD: Makefile,v 1.20 2017/10/27 19:59:07 naddy Exp $
COMMENT= automated password generator
DISTNAME= apg-2.2.3
REVISION = 0
REVISION = 1
CATEGORIES= security
HOMEPAGE= http://www.adel.nursat.kz/apg/

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-rnd_h,v 1.3 2017/10/27 19:59:07 naddy Exp $
Index: rnd.h
--- rnd.h.orig
+++ rnd.h
@@ -37,11 +37,7 @@
extern UINT32 __rnd_seed[2];
#define RND_MX 0x7FFFFFFF
-#ifdef __OpenBSD__
-#define APG_DEVRANDOM "/dev/arandom"
-#else
#define APG_DEVRANDOM "/dev/random"
-#endif /* __OpenBSD__ */
#define APG_DEVURANDOM "/dev/urandom"
extern void x917_setseed (UINT32 seed, int quiet);