Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Feb 2001 20:03:21 -0800 (PST)
From:      "Rodney W. Grimes" <freebsd@gndrsh.dnsmgr.net>
To:        rwatson@FreeBSD.org (Robert Watson)
Cc:        nsayer@FreeBSD.org (Nick Sayer), cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: ports/astro/xglobe/files patch-random
Message-ID:  <200102250403.UAA90904@gndrsh.dnsmgr.net>
In-Reply-To: <Pine.NEB.3.96L.1010224225440.85229W-100000@fledge.watson.org> from Robert Watson at "Feb 24, 2001 10:55:24 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> Hmm.  I thought there was a BUGS section in rand(3), but apparently not --
> I must be thinking of some other operating system.  We need to add one,
> and I'm surprised there isn't one already.

It's not in the BUGS section, but the man page is pretty explicit
in a few places and:

DESCRIPTION
     These interfaces are obsoleted by random(3).

if you go read random(3) you'll find your ``BUGS'':

BUGS
     About 2/3 the speed of rand(3).

     The historical implementation used to have a very weak seeding; the ran-
     dom sequence did not vary much with the seed.  The current implementation
     employs a better pseudo-random number generator for the initial state
     calculation.


> Robert N M Watson             FreeBSD Core Team, TrustedBSD Project
> robert@fledge.watson.org      NAI Labs, Safeport Network Services
> 
> On Sat, 24 Feb 2001, Nick Sayer wrote:
> 
> > nsayer      2001/02/24 19:06:40 PST
> > 
> >   Added files:
> >     astro/xglobe/files   patch-random 
> >   Log:
> >   On my system(s), xglobe's stars show up in diagonal bands. I can only
> >   conclude that rand() is not very random. This patch makes xglobe use
> >   random() instead, and does a randomdev() in main() for good measure.
> >   
> >   Approved by:	kris
> > 
> > 
> 
> 


-- 
Rod Grimes - KD7CAX @ CN85sl - (RWG25)               rgrimes@gndrsh.dnsmgr.net

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?200102250403.UAA90904>