From owner-freebsd-arch Sun Feb 25 15:45:11 2001 Delivered-To: freebsd-arch@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id A5A8037B401 for ; Sun, 25 Feb 2001 15:45:07 -0800 (PST) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.11.2/8.11.2) id f1PNj1c61711; Mon, 26 Feb 2001 02:45:02 +0300 (MSK) (envelope-from ache) Date: Mon, 26 Feb 2001 02:44:58 +0300 From: "Andrey A. Chernov" To: "Jacques A. Vidrine" Cc: arch@freebsd.org, kris@obsecurity.org Subject: Re: rand.c patch for review (was: Re: cvs commit: ports/astro/xglobe/files patch-random) Message-ID: <20010226024456.A61566@nagual.pp.ru> References: <20010225191316.A56093@nagual.pp.ru> <20010225193409.A56351@nagual.pp.ru> <20010225131002.A38192@mollari.cthul.hu> <20010225132152.A39554@mollari.cthul.hu> <20010226005004.B59772@nagual.pp.ru> <20010225135429.A47615@mollari.cthul.hu> <20010226020827.A61007@nagual.pp.ru> <20010225151519.A63582@mollari.cthul.hu> <20010226022902.A61216@nagual.pp.ru> <20010225173445.A37510@spawn.nectar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010225173445.A37510@spawn.nectar.com>; from n@nectar.com on Sun, Feb 25, 2001 at 05:34:45PM -0600 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Feb 25, 2001 at 17:34:45 -0600, Jacques A. Vidrine wrote: > On Mon, Feb 26, 2001 at 02:29:03AM +0300, Andrey A. Chernov wrote: > > As manpage says: > > "The rand_r() function is as proposed in the POSIX.4a Draft #6 document" > > Does anybody knows is there new versions of this draft exists and what > > they say? > > I don't, but does this help? > > http://www.opengroup.org/onlinepubs/007908799/xsh/rand.html It refers to POSIX Threads Extension (1003.1c-1995) for rand_r(), saying the same. It seems we can't separate rand() and rand_r() since it will be very strange when rand_r() will produce different sequence than plain rand(). -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message