This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][BZ 14561] Separate rand and random seeds.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]