aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/mozilla/nss-3.12.6/25_entropy.patch
blob: 4e62dcb6bd9ef8f207fc57493316319926b6e9e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
## 25_entropy.patch by Mike Hommey <glandium@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Remove code that called netstat to gain so called entropy. It's pretty
## DP: useless on a Linux system. Thanks Wichert Akkerman. bz#51429.

diff --git a/mozilla/security/nss/lib/freebl/unix_rand.c b/mozilla/security/nss/lib/freebl/unix_rand.c
index c8344b9..6c019da 100644
--- a/mozilla/security/nss/lib/freebl/unix_rand.c
+++ b/mozilla/security/nss/lib/freebl/unix_rand.c
@@ -849,7 +849,11 @@ safe_pclose(FILE *fp)
 /* Fork netstat to collect its output by default. Do not unset this unless
  * another source of entropy is available
  */
+#ifndef LINUX
 #define DO_NETSTAT 1
+#else
+#undef DO_NETSTAT 
+#endif
 
 void RNG_SystemInfoForRNG(void)
 {