delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/07/05/15:49:55

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: Michael Meissner <meissner AT cygnus DOT com>
Message-ID: <20000705154730.21248@cse.cygnus.com>
Date: Wed, 5 Jul 2000 15:47:30 -0400
To: DJ Delorie <dj AT delorie DOT com>
Cc: saurabhd AT andrew DOT cmu DOT edu, cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Random no. problem
References: <734163336 DOT 962806837 AT HPMENT48 DOT ME DOT CMU DOT EDU> <200007051832 DOT OAA21046 AT envy DOT delorie DOT com>
Mime-Version: 1.0
X-Mailer: Mutt 0.84
In-Reply-To: <200007051832.OAA21046@envy.delorie.com>; from DJ Delorie on Wed, Jul 05, 2000 at 02:32:24PM -0400

On Wed, Jul 05, 2000 at 02:32:24PM -0400, DJ Delorie wrote:
> 
> > Is there a way i can get the same random numbers on Windows NT 4 and
> > Sun/SGI ?
> 
> You can write your own random number generator, and use it instead of
> the system's generator.  Otherwise, there is *no* standard for random
> number generators.

Actually the ISO C standard mandates the algorithm for the weaker 'rand' and
'srand' functions.  'random' on the other hand is not specified (though most
UNIX type environments use the BSD functions in toto).

-- 
Michael Meissner, Red Hat, Inc.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work:	  meissner AT redhat DOT com		phone: +1 978-486-9304
Non-work: meissner AT spectacle-pond DOT org	fax:   +1 978-692-4482

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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