From afaf9afc770cd1bbebdb697eb10dc8687c89f8e1 Mon Sep 17 00:00:00 2001 From: ache Date: Wed, 24 Sep 1997 21:16:13 +0000 Subject: Cleanup. Initialize random --- games/rain/rain.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'games/rain/rain.c') diff --git a/games/rain/rain.c b/games/rain/rain.c index c79bb1c..55ecbbe 100644 --- a/games/rain/rain.c +++ b/games/rain/rain.c @@ -54,6 +54,9 @@ static char sccsid[] = "@(#)rain.c 8.1 (Berkeley) 5/31/93"; #include #endif #include +#include +#include +#include #define cursor(c, r) tputs(tgoto(CM, c, r), 1, fputchar) @@ -64,7 +67,7 @@ static struct sgttyb sg, old_tty; #endif int fputchar(); -char *LL, *TE, *tgoto(); +char *LL, *TE; main(argc, argv) int argc; @@ -74,9 +77,8 @@ main(argc, argv) extern char *UP; register int x, y, j; register char *CM, *BC, *DN, *ND, *term; - char *TI, *tcp, *mp, tcb[100], - *malloc(), *getenv(), *strcpy(), *tgetstr(); - long cols, lines, random(); + char *TI, *tcp, *mp, tcb[100]; + long cols, lines; int xpos[5], ypos[5]; static void onsig(); @@ -119,6 +121,7 @@ main(argc, argv) } (void)strcpy(LL, tgoto(CM, 0, 23)); } + srandomdev(); #ifdef USG ioctl(1, TCGETA, &sg); ospeed = sg.c_cflag&CBAUD; -- cgit v1.1