delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/04/11/19:12:11

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:content-type:content-transfer-encoding; q=dns; s=default; b=N+c
EGU8+8er5hVXmkJcCfHUrPpOC64K2aISsLrwX3NvFFLr7iC/43ymOFv/ipGkKfQ+
Qy5BzxByEYxZmEKcy5W3dLNG/440r/1K8R/8Ns0DGkEcs3MRembm6dIkkU1cNKyg
hESvhVAkY3UghDJjgaI25OMepNHjqSVl3bxOnTw8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:content-type:content-transfer-encoding; s=default; bh=w8Twowow2
K0avcBQGjTiNIU49tI=; b=kln7tX6dy92yhcAynFLZKwU5CV0qQmASkqovNB8QO
oF6rwu0WSlkovgBEaZPmYk7tEzIsmvXNQ1a1W6KQtcQuEwOyFD0v4b1dM2Cp5wkn
95QKgjbp2cqZ8kIzO9GWKSzwNers71q9evqXyAgFMYFJPG7Dk9UhXfbL45YCBWfv
Yk=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Spam-SWARE-Status: No, score=-4.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD autolearn=ham version=3.3.1
Message-ID: <51674333.2080102@alice.it>
Date: Fri, 12 Apr 2013 01:11:47 +0200
From: Angelo Graziosi <angelo DOT graziosi AT alice DOT it>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130328 Thunderbird/17.0.5
MIME-Version: 1.0
To: Cygwin <cygwin AT cygwin DOT com>, fortran <fortran AT gcc DOT gnu DOT org>
Subject: Re: Cygwin with clock_gettime and CLOCK_MONOTONIC - gives always 0

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019