Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Sep 2002 15:53:20 +0400
From:      dima <_pppp@mail.ru>
To:        freebsd-doc@freebsd.org
Subject:   urandom(4)
Message-ID:  <3D81D1B0.10801@mail.ru>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D81D1B0.10801>