From 6b1e8d6ab746f76406513e5390d872d84ccfacfe Mon Sep 17 00:00:00 2001 From: Xin LI Date: Sun, 26 Aug 2018 08:26:41 +0000 Subject: textproc/htmldoc: Do not use arc4random_stir. (Note that there is an updated version which will solve this too, but I am committing this one and will rebase the patch in bug 223721 as it still needs maintainer approval). PR: 230831, 230756 Approved by: portmgr (antoine) --- textproc/htmldoc/Makefile | 2 +- textproc/htmldoc/files/patch-htmldoc__http.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'textproc') diff --git a/textproc/htmldoc/Makefile b/textproc/htmldoc/Makefile index bab0be0c551f..d4022e1d6c51 100644 --- a/textproc/htmldoc/Makefile +++ b/textproc/htmldoc/Makefile @@ -3,7 +3,7 @@ PORTNAME= htmldoc PORTVERSION= 1.8.28 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= textproc MASTER_SITES= https://github.com/michaelrsweet/htmldoc/releases/download/release-${PORTVERSION}/ DISTNAME= ${PORTNAME}-${PORTVERSION}-source diff --git a/textproc/htmldoc/files/patch-htmldoc__http.c b/textproc/htmldoc/files/patch-htmldoc__http.c index 642469c2303e..c9c86063808c 100644 --- a/textproc/htmldoc/files/patch-htmldoc__http.c +++ b/textproc/htmldoc/files/patch-htmldoc__http.c @@ -5,7 +5,7 @@ * it is the best we can do (on others, this seed isn't even used...) */ +#define CUPS_RAND() arc4random() -+#define CUPS_SRAND(v) arc4random_stir() ++#define CUPS_SRAND(v) CUPS_SRAND(time(NULL)); -- cgit v1.2.3