summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1997-03-24 14:52:51 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1997-03-24 14:52:51 +0000
commit42a7afc08cc8a4c266a0d7b94ecb6eeba2a0e19c (patch)
tree2b654f45b98d4275049a15a5dd00cd815c34d1a6
parentf31679a94b0a0a002c173f8fceb0e1bf5c9895b0 (diff)
Notes
-rw-r--r--eBones/lib/libkrb/des_rw.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/eBones/lib/libkrb/des_rw.c b/eBones/lib/libkrb/des_rw.c
index e2ac18349449..586b46e6c572 100644
--- a/eBones/lib/libkrb/des_rw.c
+++ b/eBones/lib/libkrb/des_rw.c
@@ -35,7 +35,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: des_rw.c,v 1.7 1997/02/22 14:37:07 peter Exp $
*/
/*
@@ -230,7 +230,8 @@ des_write(fd, buf, len)
*/
if(!seeded) {
seeded = 1;
- srandom((unsigned)time(NULL));
+ if (srandomdev() < 0)
+ srandom((unsigned long)(time(NULL) ^ getpid()));
}
for(i = 0 ; i < 8 ; i+= sizeof(long)) {