net-p2p/gtk-gnutella: Do not call arc4random_stir or arc4random_addrandom.

PR:		230829, 230756
Approved by:	portmgr (antoine)
This commit is contained in:
Xin LI 2018-08-26 08:07:29 +00:00
parent 2508a88d61
commit add6abbeb7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=478105
3 changed files with 27 additions and 0 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= gtk-gnutella PORTNAME= gtk-gnutella
PORTVERSION= 1.1.13 PORTVERSION= 1.1.13
PORTREVISION= 1
CATEGORIES= net-p2p ipv6 CATEGORIES= net-p2p ipv6
MASTER_SITES= SF MASTER_SITES= SF

View file

@ -0,0 +1,14 @@
--- src/lib/arc4random.c.orig 2017-10-22 16:12:09 UTC
+++ src/lib/arc4random.c
@@ -298,9 +298,11 @@ arc4random64(void)
void G_COLD
arc4random_stir_once(void)
{
+#ifdef arc4random_stir
static once_flag_t done;
once_flag_run(&done, arc4random_stir);
+#endif
}
/***

View file

@ -0,0 +1,12 @@
--- src/lib/random.c.orig 2017-10-22 16:12:12 UTC
+++ src/lib/random.c
@@ -1058,7 +1058,9 @@ random_entropy(void *unused)
break;
case RANDOM_ARC4:
RANDOM_STATS_INC(arc4_distributed);
+#ifdef arc4random_addrandom
arc4random_addrandom(entropy, (int) ELEN);
+#endif
break;
case RANDOM_CMWC:
RANDOM_STATS_INC(cmwc_distributed);