summaryrefslogtreecommitdiffstats
path: root/games/rain
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2002-12-06 21:48:50 +0000
committermillert <millert@openbsd.org>2002-12-06 21:48:50 +0000
commitffe3e5223085e343918a79288526b5a6bc72f61d (patch)
tree77d8504ab3dcca2e1ba528b78510b568d567b4f6 /games/rain
parentSet transform from default. PR#3008 (diff)
downloadwireguard-openbsd-ffe3e5223085e343918a79288526b5a6bc72f61d.tar.xz
wireguard-openbsd-ffe3e5223085e343918a79288526b5a6bc72f61d.zip
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/rain')
-rw-r--r--games/rain/rain.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/rain/rain.c b/games/rain/rain.c
index 920670fc249..96fe841441d 100644
--- a/games/rain/rain.c
+++ b/games/rain/rain.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rain.c,v 1.11 2002/05/31 03:40:01 pjanzen Exp $ */
+/* $OpenBSD: rain.c,v 1.12 2002/12/06 21:48:51 millert Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -43,7 +43,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)rain.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: rain.c,v 1.11 2002/05/31 03:40:01 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: rain.c,v 1.12 2002/12/06 21:48:51 millert Exp $";
#endif
#endif /* not lint */
@@ -90,7 +90,7 @@ main(argc, argv)
exit(1);
}
- srandom(time((time_t *)NULL));
+ srandomdev();
initscr();
tcols = COLS - 4;
tlines = LINES - 4;