public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "roland at gnu dot org" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sourceware.org Subject: [Bug libc/14561] srand() initializes seed for random() function Date: Mon, 03 Jun 2013 22:49:00 -0000 [thread overview] Message-ID: <bug-14561-131-tNv4Bh88fQ@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-14561-131@http.sourceware.org/bugzilla/> http://sourceware.org/bugzilla/show_bug.cgi?id=14561 Roland McGrath <roland at gnu dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |roland at gnu dot org --- Comment #2 from Roland McGrath <roland at gnu dot org> --- Originally the existing behavior was correct (srand/rand are just aliases for srandom/random). Later versions of 1003.1 started specifying srandom as well as srand, so this has become nonconforming. 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 -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2013-06-03 22:49 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-09-07 23:06 [Bug math/14561] New: srand() initializing " jm3dev at gmail dot com 2012-09-07 23:10 ` [Bug math/14561] " jm3dev at gmail dot com 2012-09-08 19:06 ` [Bug math/14561] srand() initializes " jm3dev at gmail dot com 2012-10-24 12:48 ` [Bug libc/14561] " jsm28 at gcc dot gnu.org 2012-12-19 20:41 ` neleai at seznam dot cz 2013-06-03 22:49 ` roland at gnu dot org [this message] 2014-06-17 4:41 ` fweimer at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-14561-131-tNv4Bh88fQ@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).