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 b
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 comp
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.
2
Hi,
This method ,i.e, using /dev/urandom should work but there should be
sufficient entropy to generate enough random data. For example, if
you take an octal dump of /dev/urandom (hexdump quits when there is
no more data in the file while od waits for more data), and then dont
touch
On Mon, 7 Mar 2005, 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 Don't know how this is done for actual use in the kernel itself - So I
cannot answer that particula