ports/net-p2p/gtk-gnutella/files/patch-src_lib_arc4random.c
Xin LI add6abbeb7 net-p2p/gtk-gnutella: Do not call arc4random_stir or arc4random_addrandom.
PR:		230829, 230756
Approved by:	portmgr (antoine)
2018-08-26 08:07:29 +00:00

14 lines
276 B
C

--- 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
}
/***