The SourceForge project page:
Why i think gjrand is good.
Currently, gjrand provides a C programmer's library with generators for:
Also of interest is version 126.96.36.199 which has almost identical API but uses a very different generator internally. This can be useful for running a simulation twice with different generators to gain confidence that bad random numbers are not causing artifacts.
There were known bugs in almost all versions up to 188.8.131.52, fixed in 184.108.40.206 and later. A more minor bug was in 220.127.116.11 only.
Earlier versions were developed and tested on a 32bit X86 GNU/Linux platform, and recent ones on 64bit X86 GNU/Linux. As far as i know the current version hasn't been tested on anything else.
Version 18.104.22.168 and a few earlier ones were tested on most of the SourceForge compiler farm machines. These were all approximately Posix (Linux, BSD, MAC OS X, Solaris) with Gcc. The compile farm shut down in February 2007 so such portability testing is no longer possible. If you have portability problems or fixes please post on gjrand SourceForge forums.
If attempting to port it will be easiest with an ANSI C compiler with support for at least a few C99 features, stdint.h especially. Gcc has had this for years. Also it will be easiest on POSIX or near approximation. If using MS-Windows, Cygwin with GCC is recommended (though i haven't tried even this). Other options may need significant porting effort.