Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2001 12:15:55 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        "Andrey A. Chernov" <ache@nagual.pp.ru>
Cc:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libc/stdlib rand.3 rand.c
Message-ID:  <20010424121555.D89819@xor.obsecurity.org>
In-Reply-To: <20010424220826.A85409@nagual.pp.ru>; from ache@nagual.pp.ru on Tue, Apr 24, 2001 at 10:08:27PM %2B0400
References:  <200104230229.f3N2TA082491@freefall.freebsd.org> <200104241743.NAA97478@khavrinen.lcs.mit.edu> <20010424220826.A85409@nagual.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Tue, Apr 24, 2001 at 10:08:27PM +0400, Andrey A. Chernov wrote:
> On Tue, Apr 24, 2001 at 13:43:33 -0400, Garrett Wollman wrote:
> > <<On Sun, 22 Apr 2001 19:29:10 -0700 (PDT), "Andrey A. Chernov" <ache@FreeBSD.org> said:
> > 
> > >   Add sranddev() since srand() is not vary much with seed, typical time
> >   
> > This seems utterly pointless to me.  The only reason that any program
> > would use rand()/srand() is because those are the official interfaces
> > specified in ISO 9899.  No program would ever use an sranddev()
> > interface; if strict ISO 9899 conformance is not necessary, a better
> > PRNG (such as random() or arc4random()) would have been used.
> 
> 1) It is useful for quick-fix 3rd-party programs without complex
> patches replacing with random() or arc4random().

Could you give an example where it's difficult to replace rand() with
random() or arc4random()?  I've never encountered one.

Kris

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE65dDqWry0BWjoQKURAtWxAKCWrnPP/3xoTLx0c5eufKU2ckAPrACfb6T/
7Ym3YJvfuZ/GdRSKJfTTUc4=
=kZu3
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010424121555.D89819>