summaryrefslogtreecommitdiff
path: root/games/tetris
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/tetris
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/tetris')
-rw-r--r--games/tetris/tetris.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/tetris/tetris.c b/games/tetris/tetris.c
index 1044b1e73a8..59b89f2a355 100644
--- a/games/tetris/tetris.c
+++ b/games/tetris/tetris.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tetris.c,v 1.14 2002/07/26 21:33:28 mickey Exp $ */
+/* $OpenBSD: tetris.c,v 1.15 2002/12/06 21:48:51 millert Exp $ */
/* $NetBSD: tetris.c,v 1.2 1995/04/22 07:42:47 cgd Exp $ */
/*-
@@ -219,7 +219,7 @@ main(argc, argv)
scr_init();
setup_board();
- srandom(getpid());
+ srandomdev();
scr_set();
pos = A_FIRST*B_COLS + (B_COLS/2)-1;