Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Feb 2001 15:39:16 -0800 (PST)
From:      Matt Dillon <dillon@earth.backplane.com>
To:        "Andrey A. Chernov" <ache@nagual.pp.ru>
Cc:        Kris Kennaway <kris@obsecurity.org>, arch@FreeBSD.ORG, "Jacques A. Vidrine" <n@nectar.com>, Bruce Evans <bde@zeta.org.au>, Robert Watson <rwatson@FreeBSD.ORG>, Nick Sayer <nsayer@FreeBSD.ORG>, cvs-all@FreeBSD.ORG
Subject:   Re: rand.c patch for review (was: Re: cvs commit: ports/astro/xglobe/files patch-random)
Message-ID:  <200102252339.f1PNdGF18914@earth.backplane.com>
References:  <Pine.BSF.4.21.0102251920150.6561-100000@besplex.bde.org> <200102250900.f1P90Qc12868@earth.backplane.com> <20010225092416.A46959@hamlet.nectar.com> <20010225185535.A55782@nagual.pp.ru> <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>

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

:Bad news: we can't implement r_rand() via random() algorithm because
:r_rand() keeps its state in extenal unsigned variable (not in big table
:needed for random()). So, I suggest again to use my patch since it _is_
:r_rand() compatible.
:
:--=20
:Andrey A. Chernov

    Ach, your right.  The best we can hope for with rand() is to have
    it produce a reasonable pseudo-random sequence.

						-Matt


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?200102252339.f1PNdGF18914>