$OpenBSD: patch-mozilla_security_nss_lib_freebl_unix_rand_c,v 1.5 2009/03/23 07:50:47 jakemsr Exp $
--- mozilla/security/nss/lib/freebl/unix_rand.c.orig	Mon Dec  3 13:07:01 2007
+++ mozilla/security/nss/lib/freebl/unix_rand.c	Sun Mar 22 00:41:15 2009
@@ -888,7 +888,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)
 {
@@ -955,7 +954,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");
@@ -1132,7 +1131,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) {
 	PORT_SetError(PR_NOT_IMPLEMENTED_ERROR);
 	return fileBytes;
