This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: [gfortran] PATCH -- random.c: fix infinite loop and make sequencesconsistent


Steven G. Kargl wrote:
2004-06-13  Steven G. Kargl  <kargls@comcast.net>
     * random.c (random_r4): Burn a random number
       (random_r8): fix infinite loop.


I committed this under the obviously correct rule. Your burning of a random number also makes sense if one uses it to generate both REAL*4 and REAL*8 random numbers, as now in a sequence REAL*8, REAL*4, REAL*8 the third number will be the same as in a series of REAL*8 numbers.


- Tobi


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