This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Random no. problem
- To: cygwin at sourceware dot cygnus dot com (Cygwin Mailing List)
- Subject: Re: Random no. problem
- From: "J. J. Farrell" <jjf at bcs dot org dot uk>
- Date: Wed, 5 Jul 2000 15:11:39 -0700 (PDT)
> From: Michael Meissner <meissner@cygnus.com>
>
> 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.
Is that new in C99 (or whenever the second version was ratified)?
C89 includes an example implementation, but doesn't mandate any
particular algorithm anywhere that I can see.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com