From: selvakumar nagendran <kernelselva@yahoo.com>
To: vintya@excite.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: Random number generator in Linux kernel
Date: Wed, 9 Mar 2005 02:32:48 -0800 (PST) [thread overview]
Message-ID: <20050309103248.84827.qmail@web60606.mail.yahoo.com> (raw)
In-Reply-To: 6667
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 avoids any guess.
For more details u please refer the book ' Linux
kernel development' by Robert M Love Appendix C kernel
Random Number Generator. If u still want to stick to
ur own logic then u can implement it as a function
inside the kernel.
Regards,
selva
--- Vineet Joglekar <vintya@excite.com> 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 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.
>
> Can anybody please help me with that?
>
> Thanks and regards,
>
> Vineet.
>
> _______________________________________________
> Join Excite! - http://www.excite.com
> The most personalized portal on the Web!
> -
> To unsubscribe from this list: send the line
> "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at
> http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
__________________________________
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com/netrospective/
next reply other threads:[~2005-03-09 10:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-09 10:32 selvakumar nagendran [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-03-07 23:18 Vineet Joglekar
2005-03-08 12:59 ` Darío Mariani
2005-03-08 13:31 ` Erik Mouw
2005-03-09 20:39 ` Bill Davidsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050309103248.84827.qmail@web60606.mail.yahoo.com \
--to=kernelselva@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=vintya@excite.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®