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

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:date:from:to:cc:subject:message-id:references
:mime-version:content-type:in-reply-to; q=dns; s=default; b=m0AH
z9MZDO6U/mgJzAkPQK/6hZ/1YFne9h8Cus88fBfsmCvwhjCrjmrZttoo1zmgC3ho
DMXTpyt4a3VF9a7qZNG8VioI4fFRiBnqglUUKED0B3j83knSSTFrngZszC7yF3ZW
0zMuItmjgPo/zyUbRxJtH5arlZah+0/Sx39/wdo=
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:date:from:to:cc:subject:message-id:references
:mime-version:content-type:in-reply-to; s=default; bh=ceGkst5Qct
5CyTKzbg3mqcasuIA=; b=ixq+96Qr/UwujpLstKvfEjtst5ICbN/zQCLY3X+wfw
9kt6fLr2eViLGak8okU/j0Wcna+xHTWBwfGe2VBckpzlBy4vTWECktZ2M7nkHuw5
YSU2Eiqj8aKFUXLcI3FK9SJvqjC5MjGybUgtgFSsEjMtMnCWKowReJHRdXIWgZaU
8=
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=-3.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.1
Date: Thu, 11 Apr 2013 16:59:12 -0700
From: Steve Kargl <sgk AT troutmask DOT apl DOT washington DOT edu>
To: Angelo Graziosi <angelo DOT graziosi AT alice DOT it>
Cc: 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
Message-ID: <20130411235912.GA31328@troutmask.apl.washington.edu>
References: <51674473 DOT 3030704 AT alice DOT it>
MIME-Version: 1.0
In-Reply-To: <51674473.3030704@alice.it>
User-Agent: Mutt/1.5.21 (2010-09-15)

On Fri, Apr 12, 2013 at 01:17:07AM +0200, Angelo Graziosi wrote:
> Steve Kargl wrote
> 
> > My
> > disagreemnet is predicated on the stupidity of using a 10 line
> > example subroutine without actually inspecting what it does on
> > whatever OS that one chooses to use.
> 
> It is just because one has tested that code that these problems came to 
> light... :-)
> 

When testing, it would help if the results were properly
represented as your initial subject line was "Random seed
initialization".  It seems clear to at least me your testing
did not include actually inspecting what these two lines do:

   CALL SYSTEM_CLOCK(COUNT=clock)
   seed = clock + 37 * (/ (i-1), 1=1, n) /)

because your subject would have been "SYSTEM_CLOCK is broken
on cygwin".

If you want to see an actual issue with "Random seed initialization"
go read PR 52879.

-- 
Steve

--
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