mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
Remove SVR4 codeblock which insisted on using srand(time(0)) and rand().
How did this survive the tedu?? Very disappointed!!
This commit is contained in:
parent
2599342dcf
commit
89f61510a2
@ -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:
|
||||
|
@ -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() */
|
||||
|
Loading…
Reference in New Issue
Block a user