[PATCH][BZ 14561] Separate rand and random seeds.
Rich Felker
dalias@aerifal.cx
Thu May 23 22:54:00 GMT 2013
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
More information about the Libc-alpha
mailing list