This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]