no need to use /dev/arandom on OpenBSD
This commit is contained in:
parent
272d9dee04
commit
2bec75f245
@ -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/
|
||||
|
17
security/apg/patches/patch-rnd_h
Normal file
17
security/apg/patches/patch-rnd_h
Normal 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);
|
Loading…
x
Reference in New Issue
Block a user