Re: [fortran, doc] Improve random_seed example

2013-05-22 Thread Janne Blomqvist
On Tue, May 21, 2013 at 2:50 AM, Steve Kargl wrote: > On Fri, May 17, 2013 at 03:18:01PM +0300, Janne Blomqvist wrote: >> Hi, >> >> the example we provide for the usage of the random_seed intrinsic >> could be better. At least one user has already been tripped over by >> the fact that on some targ

Re: [fortran, doc] Improve random_seed example

2013-05-20 Thread Steve Kargl
On Fri, May 17, 2013 at 03:18:01PM +0300, Janne Blomqvist wrote: > Hi, > > the example we provide for the usage of the random_seed intrinsic > could be better. At least one user has already been tripped over by > the fact that on some targets the first call to system_clock returns > 0, resulting i

[fortran, doc] Improve random_seed example

2013-05-17 Thread Janne Blomqvist
Hi, the example we provide for the usage of the random_seed intrinsic could be better. At least one user has already been tripped over by the fact that on some targets the first call to system_clock returns 0, resulting in a poor seed. Below is an improved(?!) example program. Ok for trunk/4.8/4.