[lkml]   [2005]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Random number generator in Linux kernel
    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 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.

    Without knowing what you're doing I can't say if it justifies having all
    that extra code around, but the stuff from the library, like srand48,
    will do this. You can add the code to your module.

    -bill davidsen (
    "The secret to procrastination is to put things off until the
    last possible moment - but no longer" -me
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:11    [W:0.018 / U:8.060 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site