Re: rand() in while in kernel mode

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

 



On Fri, 2002-02-22 at 02:41, Amit Kucheria wrote:
> On 21 Feb 2002, Tomas Ukkonen wrote:
> > What is a good way to get (quality) random numbers while in a interrupt
> > handler and/or in kernel mode or should I generate them myself?
> > TIA,
> > Tomas Ukkonen
> 
> Some way to access /dev/random ??> 

Yes, that's probably the right way to do it. I was just wondering if
there's some reason why I shouldn't. Drivers/net/hamradio/yam.c
generates its own random numbers. Does anyone know why it does that or
is it just sloppy coding?

-- 
Tomas Ukkonen
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux