[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rtl] generating random numbers



On Thu, 10 Aug 2000, Adi Sudewa wrote:

> > 	You could used get_random_bytes().  See linux/random.h for the
> > prototype.
> 
> I already try it. But when I insmod random.o, I get this message :
> ``couldn't find the kernel version the module was compiled for''.

Because it is not a module. That code is always compiled in the kernel - TCP
uses it. Just use it.

To get your numbers more random you might wish to feed more noise into
"enthropy pool" - use every hard disk and network interrupt to add the noise
- look (grep kernel source) for places where

 *      void add_interrupt_randomness(int irq);
 *      void add_blkdev_randomness(int irq);

are used and see how to activate it. 

Best regards,
--
Tomek