Implement LCG pseudorandom number functions
Partial implementation of the POSIX LCG-based pseudorandom number functions. The functions drand48()
, lrand48()
, mrand48()
and srand48()
are implemented with this MR. Output is validated as being identical to that obtained with glibc.
The functions erand48()
, jrand48()
, lcong48()
, nrand48()
and seed48()
are still missing as I couldn't get them to work correctly. These all take fixed-size array arguments, which seems to be affected by a bug in cbindgen.