Re: Random number generator in Linux kernel

2005-03-09 Thread Bill Davidsen
Vineet Joglekar wrote: Hi all, Can someone please tell me where can I find and which random/pseudo-random number generator can I use inside the linux kernel? (2.4.28) I found out 1 function get_random_bytes() in linux/drivers/char/random.c but thats not what I want. I want a function where I will

Re: Random number generator in Linux kernel

2005-03-09 Thread selvakumar nagendran
I think ur idea of generating a random number with a seed will not be effective. The kernel comes up with true random number generation by using the random interaction of device drivers with the kernel. I think that will be more effective than ur logic. It provides true randomness and it

Re: Random number generator in Linux kernel

2005-03-09 Thread selvakumar nagendran
I think ur idea of generating a random number with a seed will not be effective. The kernel comes up with true random number generation by using the random interaction of device drivers with the kernel. I think that will be more effective than ur logic. It provides true randomness and it

Re: Random number generator in Linux kernel

2005-03-09 Thread Bill Davidsen
Vineet Joglekar wrote: Hi all, Can someone please tell me where can I find and which random/pseudo-random number generator can I use inside the linux kernel? (2.4.28) I found out 1 function get_random_bytes() in linux/drivers/char/random.c but thats not what I want. I want a function where I will

Re: Random number generator in Linux kernel

2005-03-08 Thread Erik Mouw
On Mon, Mar 07, 2005 at 06:18:53PM -0500, Vineet Joglekar wrote: > I want a function where I will be supplying a seed to that function > as an input, and will get a random number back. If same seed is used, > same number should be generated again. Google for "Numerical recipes in C", it has a

Re: Random number generator in Linux kernel

2005-03-08 Thread Darío Mariani
As far as I understand the kernel generates random numbers gathering data from several entropy sources, you will never get repetability from there. Two options I know of: 1) The standard C library has the functions rand and random, wich seems to have a decent distribution of the random numbers.

Re: Random number generator in Linux kernel

2005-03-08 Thread Darío Mariani
As far as I understand the kernel generates random numbers gathering data from several entropy sources, you will never get repetability from there. Two options I know of: 1) The standard C library has the functions rand and random, wich seems to have a decent distribution of the random numbers.

Re: Random number generator in Linux kernel

2005-03-08 Thread Erik Mouw
On Mon, Mar 07, 2005 at 06:18:53PM -0500, Vineet Joglekar wrote: I want a function where I will be supplying a seed to that function as an input, and will get a random number back. If same seed is used, same number should be generated again. Google for Numerical recipes in C, it has a complete

Random number generator in Linux kernel

2005-03-07 Thread Vineet Joglekar
Hi all, Can someone please tell me where can I find and which random/pseudo-random number generator can I use inside the linux kernel? (2.4.28) I found out 1 function get_random_bytes() in linux/drivers/char/random.c but thats not what I want. I want a function where I will be

Random number generator in Linux kernel

2005-03-07 Thread Vineet Joglekar
Hi all, Can someone please tell me where can I find and which random/pseudo-random number generator can I use inside the linux kernel? (2.4.28) I found out 1 function get_random_bytes() in linux/drivers/char/random.c but thats not what I want. I want a function where I will be