Date: Sun, 25 Feb 2001 00:58:13 -0800 From: Kris Kennaway <kris@obsecurity.org> To: arch@FreeBSD.org Subject: Re: cvs commit: ports/astro/xglobe/files patch-random Message-ID: <20010225005813.A29124@mollari.cthul.hu> In-Reply-To: <20010225095240.A77183@student.uu.se>; from ertr1013@student.uu.se on Sun, Feb 25, 2001 at 09:52:40AM %2B0100 References: <Pine.BSF.4.21.0102251713590.5810-100000@besplex.bde.org> <200102250640.f1P6e0q11960@earth.backplane.com> <20010224225935.A769@mollari.cthul.hu> <20010225095240.A77183@student.uu.se>
next in thread | previous in thread | raw e-mail | index | archive | help
--RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 25, 2001 at 09:52:40AM +0100, Erik Trulsson wrote: > No, the algorithm of rand() is not standardized in the C standard. >=20 > OTOH, there is an example of a portable implementation of rand() in the > C standard and FreeBSD uses the same algorithm (as does many other > implementations of rand()). This is probably what you were thinking of. >=20 > As long as rand() and srand() behaves as describe in the man-page for > rand(3) they confirm to the C standard. (Provided that RAND_MAX is at=20 > least 32767.) That's good to know. I'll look at replacing it with something better that has the same semantics, so we solve this problem at the source. Kris --RnlQjJ0d97Da+TV1 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 iD8DBQE6mMklWry0BWjoQKURApBcAKCTBilq4rUIMRjveYg1ZuFxPsSLCACfUNY4 R2TN08DNdTm6W5F4o5Aures= =JsDu -----END PGP SIGNATURE----- --RnlQjJ0d97Da+TV1-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010225005813.A29124>