summaryrefslogtreecommitdiff
path: root/games/larn
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-12-06 21:48:53 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-12-06 21:48:53 +0000
commit99f7d832e358aafae4a20e767b7ff31210c4887d (patch)
tree0d21178d992de6b4ae212bcdf5ad9cef92f9ee18 /games/larn
parent9e9e683c581c45c1caca670660c0bb9d1906a95d (diff)
Replace things like srandom(time(NULL)) with srandomdev(3). random(3)
good enough for games but we should at least use a decent seed. pjanzen@ OK
Diffstat (limited to 'games/larn')
-rw-r--r--games/larn/io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/larn/io.c b/games/larn/io.c
index 8f0b45734a1..620de2cd848 100644
--- a/games/larn/io.c
+++ b/games/larn/io.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: io.c,v 1.8 2002/02/19 19:39:36 millert Exp $ */
+/* $OpenBSD: io.c,v 1.9 2002/12/06 21:48:51 millert Exp $ */
/* $NetBSD: io.c,v 1.7 1997/10/18 20:03:26 christos Exp $ */
/*
@@ -61,7 +61,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: io.c,v 1.8 2002/02/19 19:39:36 millert Exp $";
+static char rcsid[] = "$OpenBSD: io.c,v 1.9 2002/12/06 21:48:51 millert Exp $";
#endif /* not lint */
#include "header.h"
@@ -210,7 +210,7 @@ newgame()
for (p = c, pe = c + 100; p < pe; *p++ = 0);
time(&initialtime);
- srandom(initialtime);
+ srandomdev();
lcreat((char *) 0); /* open buffering for output to terminal */
}