diff options
author | deraadt <deraadt@openbsd.org> | 2014-12-05 00:48:57 +0000 |
---|---|---|
committer | deraadt <deraadt@openbsd.org> | 2014-12-05 00:48:57 +0000 |
commit | 89f61510a2b957c988d85b7221ca12b3966ffcd1 (patch) | |
tree | 3693b161b06c89ce315193a78889f7434e3f680c /games/gomoku | |
parent | add tests for new client RevokedHostKeys option; (diff) | |
download | wireguard-openbsd-89f61510a2b957c988d85b7221ca12b3966ffcd1.tar.xz wireguard-openbsd-89f61510a2b957c988d85b7221ca12b3966ffcd1.zip |
Remove SVR4 codeblock which insisted on using srand(time(0)) and rand().
How did this survive the tedu?? Very disappointed!!
Diffstat (limited to 'games/gomoku')
-rw-r--r-- | games/gomoku/main.c | 5 | ||||
-rw-r--r-- | games/gomoku/pickmove.c | 6 |
2 files changed, 2 insertions, 9 deletions
diff --git a/games/gomoku/main.c b/games/gomoku/main.c index 35413afeee9..6941b4b56f2 100644 --- a/games/gomoku/main.c +++ b/games/gomoku/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.25 2014/11/16 04:49:48 guenther Exp $ */ +/* $OpenBSD: main.c,v 1.26 2014/12/05 00:48:57 deraadt Exp $ */ /* * Copyright (c) 1994 * The Regents of the University of California. All rights reserved. @@ -126,9 +126,6 @@ main(argc, argv) } if (!debug) -#ifdef SVR4 - srand(time(0)); -#endif if (interactive) cursinit(); /* initialize curses */ again: diff --git a/games/gomoku/pickmove.c b/games/gomoku/pickmove.c index 1e23af9f294..d7d67b3fcc0 100644 --- a/games/gomoku/pickmove.c +++ b/games/gomoku/pickmove.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pickmove.c,v 1.12 2013/08/29 20:22:13 naddy Exp $ */ +/* $OpenBSD: pickmove.c,v 1.13 2014/12/05 00:48:57 deraadt Exp $ */ /* * Copyright (c) 1994 * The Regents of the University of California. All rights reserved. @@ -203,11 +203,7 @@ better(sp, sp1, us) if (sp->s_wval != sp1->s_wval) return (0); -#ifdef SVR4 - return (rand() & 1); -#else return (arc4random() & 1); -#endif } int curcolor; /* implicit parameter to makecombo() */ |