[lkml]   [2000]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: /dev/random probs in 2.4test(12-pre3)
    Followup to:  <>
    By author: Igmar Palsenberg <>
    In newsgroup:
    > Hmm.. Some came to mind :
    > Making /dev/random block if the amount requirements aren't met makes sense
    > to me. If I request x bytes of random stuff, and get less, I probably
    > reread /dev/random. If it's entropy pool is exhausted it makes sense to be
    > to block.

    Yes, it does, but it doesn't make any sense to block if there are data
    to be read. If you need a larger read then you should advance your
    pointer and try again with the residual size, or use fread() which
    does this for you.

    <> at work, <> in private!
    "Unix gives you enough rope to shoot yourself in the foot."
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 12:51    [W:0.021 / U:54.160 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site