Mail Archives: djgpp-workers/2000/04/27/07:13:18
Dieter said:
> I think, the only PRNG in libc, that may be changed, is rand(). The
> rand48 family seems to be what I know from Cray and/or some Unix
> variants. The random() seems to be BSD random. So changing (even
> advancing) these may break some code. (To test a port to djgpp, you
> may run a simulation and compare with the expected results.)
I'm interested in whether the rand48() functions behave approximately
as well as on other architectures/implementations, because I wrote
them from scratch and I didn't do any extensive testing (of lack of
knowledge how). In particular I wonder how the ones generating doubles
(drand48(), erand48()) behave, as I improvised most on them.
Right,
MartinS
- Raw text -