------- Comment #5 from kargl at gcc dot gnu dot org  2007-08-10 20:47 -------
(In reply to comment #4)
> (In reply to comment #3)
> > UGH.
> > 
> > I'd rather document gfortran's behavior than add additional hacks
> > into the compiler.
> 
> Hum, I was of the same opinion at first. What somehow convinced me that it
> might be worth the price is that the use of DATE_AND_TIME to initialize the
> random seed is actually in the Metcalf book. There is a nice chance that it
> will end up in most user codes.

Ugh**2 :-)

I loaned my copy of M&R to colleague and it never returned.  I can't imagine
that M&R did not add some qualifier to quality of seeds that one gets from
DATE_AND_TIME.

Your attempt to randomize the seeds really isn't all that good because
there is such a limited amount of entropy in year, month, day, and hour.
I have analyzed your algorthim closely enough, so what is the effect
on someone who actually knows how to properly seed gfortran's PRNG.
Are there any degenerate side effects?

The person of c.l.f is simply doing a rather crappy test of randomness.
See my replies.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32812

Reply via email to