Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jan 2001 19:07:44 -0500 (EST)
From:      Garrett Wollman <wollman@hergotha.lcs.mit.edu>
To:        cvs-all@freebsd.org, cvs-committers@freebsd.org
Subject:   mount_mfs "fix" for entropy hang
Message-ID:  <200101120007.f0C07ib14316@hergotha.lcs.mit.edu>

next in thread | raw e-mail | index | archive | help
Index: mkfs.c
===================================================================
RCS file: /home/ncvs/src/sbin/newfs/mkfs.c,v
retrieving revision 1.32
diff -u -r1.32 mkfs.c
--- mkfs.c	2000/10/24 03:28:59	1.32
+++ mkfs.c	2001/01/12 00:05:59
@@ -192,7 +192,13 @@
 #ifdef FSIRAND
 	if (!randinit) {
 		randinit = 1;
-		srandomdev();
+		if (mfs) {
+			time_t t;
+			time(&t);
+			srandom(t);
+		} else {
+			srandomdev();
+		}
 	}
 #endif
 	if (mfs) {


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101120007.f0C07ib14316>