J
JohnF
Sorry if the wrong ng (please suggest another).
I'm looking for robustly portable stdlib entry points
for rand()/srand() (e.g., or random()/srandom()),
particularly across linux gcc and windows
mingw and djgpp (and ms compilers).
That is, I want to distribute one source, without
a lot of pesky #ifdef's, to compile on all platforms.
Would also be nice if portable across everything
else from free/netbsd to vms/dec C, too, but linux
and windows are the biggies. Google shows various
occasional complaints about rand stuff not compiling and/or
not working on windows. I don't need anything particularly
good -- just naked eye random, so to speak. And if it's
easier to just cut-and-paste source from Numerical Recipes,
I'm okay with that, too.
I'm looking for robustly portable stdlib entry points
for rand()/srand() (e.g., or random()/srandom()),
particularly across linux gcc and windows
mingw and djgpp (and ms compilers).
That is, I want to distribute one source, without
a lot of pesky #ifdef's, to compile on all platforms.
Would also be nice if portable across everything
else from free/netbsd to vms/dec C, too, but linux
and windows are the biggies. Google shows various
occasional complaints about rand stuff not compiling and/or
not working on windows. I don't need anything particularly
good -- just naked eye random, so to speak. And if it's
easier to just cut-and-paste source from Numerical Recipes,
I'm okay with that, too.