From owner-freebsd-arch Sun Feb 25 0:58:17 2001 Delivered-To: freebsd-arch@freebsd.org Received: from obsecurity.dyndns.org (adsl-63-207-60-199.dsl.lsan03.pacbell.net [63.207.60.199]) by hub.freebsd.org (Postfix) with ESMTP id 2747537B491 for ; Sun, 25 Feb 2001 00:58:14 -0800 (PST) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id CCB8066F83; Sun, 25 Feb 2001 00:58:13 -0800 (PST) Date: Sun, 25 Feb 2001 00:58:13 -0800 From: Kris Kennaway To: arch@FreeBSD.org Subject: Re: cvs commit: ports/astro/xglobe/files patch-random Message-ID: <20010225005813.A29124@mollari.cthul.hu> References: <200102250640.f1P6e0q11960@earth.backplane.com> <20010224225935.A769@mollari.cthul.hu> <20010225095240.A77183@student.uu.se> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010225095240.A77183@student.uu.se>; from ertr1013@student.uu.se on Sun, Feb 25, 2001 at 09:52:40AM +0100 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --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