lkml.org 
[lkml]   [2005]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: short read from /dev/urandom
    Date
    Ulrich Drepper  wrote:
    >The /dev/urandom device is advertised as always returning the requested
    >number of bytes.

    True. Arguably, the solution is to fix the documentation.
    Why not make /dev/urandom like every other kind of fd in the world,
    and make no promises about whether a read() will always return as
    many bytes as requested? Is there any reason /dev/urandom fds special?
    -
    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/

    \
     
     \ /
      Last update: 2005-03-22 14:09    [W:0.019 / U:0.400 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site