Cygwin with clock_gettime and CLOCK_MONOTONIC - gives always 0
Angelo Graziosi
angelo.graziosi@alice.it
Thu Apr 11 23:59:00 GMT 2013
Steve Kargl wrote:
> On Thu, Apr 11, 2013 at 10:35:54PM +0200, Tobias Burnus wrote:
>>
>> * gfortran's example for random_see should be change to not use
>> system_clock for the random seed.
>>
>
> I disagree. The example is just that a short example
> that demonstrates how to use random_seed. Anyone using
> that example in his/her code without testing the results
> in his/her potentially broken environment should not be
> programming.
Obviously I test the code before using it, and it worked fine since oct.
2010 on different systems: Fedora, Ubuntu, Kubuntu and also on Cygwin
(as long as one uses GCC-4.5). It is only recently, with GCC >= 4.7, I
noticed the problems on Cygwin.
BTW, I changed the method to initialize the random seed more than a
month ago.
Ciao,
Angelo.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list