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

--YToU2i3Vx8H2dn7O
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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@F=
reeBSD.org> said:
> >=20
> > >   Add sranddev() since srand() is not vary much with seed, typical ti=
me
> >  =20
> > 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.
>=20
> 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

--YToU2i3Vx8H2dn7O
Content-Type: application/pgp-signature
Content-Disposition: inline

-----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-----

--YToU2i3Vx8H2dn7O--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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