> 1) can we use float in the kernel modules, i don't find any > using it ? This recently was up on lkml, check the archives. The RAID-functionality uses it for checksumming or something similar. So yes, it can be done. > 2) do we have any random number generator in the > kernel ? anything that can be used by modules, looked at linux/random.h, > but there wasnt any generic random number generator that generated a random > number between two limits say 1 .. n, where n might be any positive integer drivers/char/random.c: void get_random_bytes(void *buf, int nbytes) Alex -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/