From owner-freebsd-hackers Sat Nov 28 19:22:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA14828 for freebsd-hackers-outgoing; Sat, 28 Nov 1998 19:22:11 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from bingsun2.cc.binghamton.edu (bingsun2.cc.binghamton.edu [128.226.1.6]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA14822 for ; Sat, 28 Nov 1998 19:22:08 -0800 (PST) (envelope-from bf20761@binghamton.edu) Received: from localhost (bf20761@localhost) by bingsun2.cc.binghamton.edu (8.8.7/8.6.9) with SMTP id WAA23071 for ; Sat, 28 Nov 1998 22:21:57 -0500 (EST) Date: Sat, 28 Nov 1998 22:21:56 -0500 (EST) From: zhihuizhang X-Sender: bf20761@bingsun2 To: hackers Subject: random number and primitive polynomial Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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). 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 | -------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message