This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH][BZ 14561] Separate rand and random seeds.
- From: Rich Felker <dalias at aerifal dot cx>
- To: Roland McGrath <roland at hack dot frob dot com>
- Cc: OndÅej BÃlka <neleai at seznam dot cz>, libc-alpha at sourceware dot org
- Date: Thu, 23 May 2013 18:54:15 -0400
- Subject: Re: [PATCH][BZ 14561] Separate rand and random seeds.
- References: <20130520190628 dot GA22088 at domone dot kolej dot mff dot cuni dot cz> <20130523191141 dot 1C6532C0A2 at topped-with-meat dot com> <20130523192121 dot GA11832 at domone dot kolej dot mff dot cuni dot cz> <20130523192922 dot 086AE2C09F at topped-with-meat dot com> <20130523201333 dot GS20323 at brightrain dot aerifal dot cx> <20130523225048 dot 2132B2C09D at topped-with-meat dot com>
On Thu, May 23, 2013 at 03:50:48PM -0700, Roland McGrath wrote:
> > This program is required by the standard to print the same results
> > regardless of the number of arguments passed. Presently, it does not.
>
> I have no idea what standard you intend to cite. Be specific. When the
> implementation we have today was done, there was no standard anywhere that
> specified the random and srandom functions.
http://pubs.opengroup.org/onlinepubs/9699919799/functions/rand.html
The implementation shall behave as if no function defined in this
volume of POSIX.1-2008 calls rand() or srand().
Note that srandom and random are defined in this volume:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/random.html
Rich