1) I replaced the functions random() and srandom() with the standard C
functions rand() and srand() in backend.c and zippy.c.
Is there any particular reason to use the non-standard versions of these
function?
In a WinBoard compile these are supposed to be macros, #defined in
common.h, as there is a
#define HAVE_RANDOM 0
in winboard/config.h, which is used in the compile. You could be using a
wrong config.h here:
ifthere is a config.h in the parent directory, because you ran ./configure
there, the compile
might prefer to use that in stead of the (fixed) config.h for use in WB
compiled,
as there is a -I .. in the compiler flags.
It could be that random is #defined as rand in this case, which is a bit
fishy, as the
whole reason for this construction seems to be forcing the use of the function
myrandom() in winboard.c in stead of the aparently insatisfactory rand().
myrandom() is called directly in two places from winboard.c, though.