Hi, My name is Sven, I'm a 17 years old hacker wannabee from Hamburg/Germany. I'm currently working on a lottery scheduler for Linux. First I wanted to implement my own random number generator, but somebody gave me the hint to use the function 'get_random_bytes'. I read it, but I still don't know how to use it. It would be very kind if somebody could post a short example or something like that, that explaines how to use 'get_random_bytes'. Thanks in advance Sven PS: If somebody has already implemented a lottery scheduler for Linux or Minix I would like to encourage him to send me his code, even if he did it for an old version of Linux or Minix. I'm sure that I'll find at least one thing that I could do better in my code when I've got something to compare my code with. -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GCS d- s: a--- C++++ UL+++ P++ L++++ E- W+ N+ !o K- w--- !O M- V- PS+ PE++ Y-- PGP++ t--- 5-- X+ R- tv- b+ DI+ D- G++ !e h! r- y? ------END GEEK CODE BLOCK------ - 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/