From owner-freebsd-doc Fri Sep 13 4:53:27 2002 Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9679637B400 for ; Fri, 13 Sep 2002 04:53:25 -0700 (PDT) Received: from mx6.mail.ru (mx6.mail.ru [194.67.57.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C4FE43E42 for ; Fri, 13 Sep 2002 04:53:24 -0700 (PDT) (envelope-from _pppp@mail.ru) Received: from drweb by mx6.mail.ru with drweb-scanned (Exim MX.6) id 17pp0l-0005EJ-00 for freebsd-doc@freebsd.org; Fri, 13 Sep 2002 15:53:23 +0400 Received: from [213.128.193.142] (helo=mail.ru) by mx6.mail.ru with esmtp (Exim SMTP.6) id 17pp0j-0005CA-00 for freebsd-doc@freebsd.org; Fri, 13 Sep 2002 15:53:22 +0400 Message-ID: <3D81D1B0.10801@mail.ru> Date: Fri, 13 Sep 2002 15:53:20 +0400 From: dima <_pppp@mail.ru> User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.0) Gecko/20020816 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: freebsd-doc@freebsd.org Subject: urandom(4) Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Envelope-To: freebsd-doc@freebsd.org Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org man 4 urandom claims that there exists void add_interrupt_randomness(int irq); function to use the inter-interrupt timing as random input into the "entropy pool". but $ grep add_interrupt_randomness /usr/include/sys/*.h says /usr/include/sys/random.h:inthand2_t add_interrupt_randomness; & $ grep add_interrupt_randomness /sys/kern/*.c /sys/kern/kern_random.c:add_interrupt_randomness(void *vsc) rndcontrol(8) utility uses IOCTL on /dev/random to achieve the functionality needed. so: -- either void add_interrupt_randomness(int irq) /*a very useful function*/ (as well as del_interrupt_randomness(int irq) probably) should be added to the /sys/kern/kern_random.c with appropriate exports to /usr/include/sys/random.h file; -- or man pages related to random should be fixed. PS: the code needed could be derived from /usr/src/usr.sbin/rndcontrol/rndcontrol.c; i'll check that out later. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message