This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
random & friends ...
- From: Lars Segerlund <lars dot segerlund at comsys dot se>
- To: fortran at gcc dot gnu dot org
- Date: Fri, 13 Feb 2004 16:36:33 +0100
- Subject: random & friends ...
Hi everyone,
I have looked at random and random seed again, and it seems that the following holds true, the code is ok, except for the random seed not being initialized in the beginning, which is easy to take care of.
I was fooling myself a bit with by not zeroing the array prior to use, ( it seems it contained garbage, which is fully reasonable ), and was misinterpretating this as a bug.
I will figure out what should be the prefered solution to seed the random number generator, perhaps only add a cal at the time of the library initialization. I will be back with a patch for the prefered solution.
/ regards, Lars Segerlund.