Try "get_random_bytes()" function, defined in "./drivers/char/random.c" file, this file also contains good amount of documentation on random number generation. regards, -Gaurav On 8/24/05, Linux781 <linux781@xxxxxxxxx> wrote: > Hi, > > I need to generate random numbers within a particular range (31 to > 1023) inside an device driver (LKM). Any suggestions on how to go > about it? > > Thanks. > > - Akshay > > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ > > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/