Date: Sun, 25 Feb 2001 22:16:42 +0200 From: Mark Murray <mark@grondar.za> To: cvs-committers@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: <200102252016.f1PKFvR02915@gratis.grondar.za> In-Reply-To: <20010225125901.A47165@hamlet.nectar.com> ; from "Jacques A. Vidrine" <n@nectar.com> "Sun, 25 Feb 2001 12:59:01 CST." References: <20010225125901.A47165@hamlet.nectar.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 1) Seed & State. Even if srand() is backed by srandom(), if called > > independently, they overwrite each other seeding > > state. initstate() etc. adds more here. > > Emphasis: Standard C says that rand/srand must behave as if > no other library functions ever call them. i.e. the state must > not change except when the application calls rand/srand. OK - good answers. Whatever rand() we choose needs decent theory behind it. Andrey - you had something - what was its origin? M -- Mark Murray Warning: this .sig is umop ap!sdn 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?200102252016.f1PKFvR02915>