$OpenBSD: patch-security_nss_lib_freebl_unix_rand_c,v 1.2 2009/11/27 21:18:52 naddy Exp $
--- security/nss/lib/freebl/unix_rand.c.orig	Mon Nov  2 22:43:12 2009
+++ security/nss/lib/freebl/unix_rand.c	Wed Nov 25 22:04:30 2009
@@ -849,7 +849,6 @@ safe_pclose(FILE *fp)
 /* Fork netstat to collect its output by default. Do not unset this unless
  * another source of entropy is available
  */
-#define DO_NETSTAT 1
 
 void RNG_SystemInfoForRNG(void)
 {
@@ -916,7 +915,7 @@ void RNG_SystemInfoForRNG(void)
     GiveSystemInfo();
 
     /* grab some data from system's PRNG before any other files. */
-    bytes = RNG_FileUpdate("/dev/urandom", SYSTEM_RNG_SEED_COUNT);
+    bytes = RNG_FileUpdate(RAND_DEV, SYSTEM_RNG_SEED_COUNT);
 
     /* If the user points us to a random file, pass it through the rng */
     randfile = getenv("NSRANDFILE");
@@ -1159,7 +1158,7 @@ size_t RNG_SystemRNG(void *dest, size_t maxLen)
     size_t fileBytes = 0;
     unsigned char *buffer = dest;
 
-    file = fopen("/dev/urandom", "r");
+    file = fopen(RAND_DEV, "r");
     if (file == NULL) {
 	return rng_systemFromNoise(dest, maxLen);
     }
