在内核模块中生成随机数

Ban*_*oot 7 linux random linux-device-driver linux-kernel

在Linux中是否有一个rand()等效函数,我可以在内核空间中调用,即从内核模块中调用?

Jey*_*ram 9

get_random_bytes()例程返回随机字节的请求数量并将其存储在缓冲区中.此例程适用于无法处于等待状态的内核模块.

http://www.linuxquestions.org/questions/programming-9/random-numbers-kernel-642087/

http://www.spinics.net/lists/newbies/msg00062.html