From owner-freebsd-hackers Sun Nov 29 15:15:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA14087 for freebsd-hackers-outgoing; Sun, 29 Nov 1998 15:15:03 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from aaz.links.ru (aaz.links.ru [193.125.152.37]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA14081 for ; Sun, 29 Nov 1998 15:15:01 -0800 (PST) (envelope-from babolo@aaz.links.ru) Received: (from babolo@localhost) by aaz.links.ru (8.9.1a/8.8.8) id CAA15788; Mon, 30 Nov 1998 02:18:21 +0300 (MSK) (envelope-from babolo) Message-Id: <199811292318.CAA15788@aaz.links.ru> Subject: Re: random number and primitive polynomial In-Reply-To: from "zhihuizhang" at "Nov 28, 98 10:21:56 pm" To: bf20761@binghamton.edu (zhihuizhang) Date: Mon, 30 Nov 1998 02:18:21 +0300 (MSK) Cc: freebsd-hackers@FreeBSD.ORG From: "Aleksandr A.Babaylov" MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG zhihuizhang writes: > > Hi, I am now interested in how a truly random number is generated. The > source code is contained in file random_machdep.c. Can anyone tell me > where I can find good reference on how the primitive polynomial is related > to random number generation (i.e., its properties and role in a random > number generator). The art of computer programming Volume 2 Seminumerical Algorithms Donald E. Knuth Addicon-Wesley Publishing Company 1969 > By the way, I can not find where the file stdlib.h is located. According > to the manual, rand() are defined in it. I want to look at the source > code of rand() too (although it is said to be a bad random number > generator). > > Any help is appreciated. > > -------------------------------------------------- > | Zhihui Zhang, http://cs.binghamton.edu/~zzhang | > | Dept. of Computer Science, SUNY at Binghamton | > -------------------------------------------------- -- @BABOLO http://links.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message