[lkml]   [2005]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: short read from /dev/urandom
    On Sat, Jan 15, 2005 at 07:58:23PM -0800, Ulrich Drepper wrote:

    > Matt Mackall wrote:
    > >_Neither_ case mentions signals and the "and will return as many bytes
    > >as requested" is clearly just a restatement of "does not have this
    > >limit". Whoever copied this comment to the manpage was a bit sloppy
    > >and dropped the first clause rather than the second:
    > It still means the documented API says there are no short reads.

    No. It says that /dev/urandom "contains" an unlimited amount
    of bits - you can read as many bits from there as you want,
    while /dev/random "contains" a limited amount of information -
    you can exhaust it.

    That is information about the device. There is no suggestion at all
    about some special property that would guarantee that the normal
    read() system call has special behavior in connection with /dev/urandom.

    There is no special documented API. Now that this misunderstanding
    occurred I suppose a clarifying sentence will be added.
    Nothing special with /dev/urandom.

    Applications that make special assumptions are broken.

    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:09    [W:0.020 / U:35.308 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site