Skip to content

Remove note about /dev/urandom #14143

Closed
Closed
@th

Description

@th

The doc page for Crate rand features this note:

Note: on Linux, /dev/random is more secure than /dev/urandom, but it is a blocking RNG, and will wait until it has determined that it has collected enough entropy to fulfill a request for random data. It can be used with the Rng trait provided by this module by opening the file and passing it to reader::ReaderRng. Since it blocks, /dev/random should only be used to retrieve small amounts of randomness.

This is plain wrong.

Please see Daniel Bernstein in http://www.mail-archive.com/[email protected]/msg04763.html

For a cryptographer this doesn't even pass the laugh test.

or my own essay at http://www.2uo.de/myths-about-urandom/

The note should be removed without replacement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions