Skip to content

Easy to run out of randomness on Android #804

@mmastrac

Description

@mmastrac

Background

What is your motivation?

When creating a number of threads quickly on Android without having accessed a thread rng previously, it's possible to get a panic like so:

Panic! PanicInfo { payload: Any, message: Some(could not initialize thread_rng: All entropy sources failed (permanently unavailable); cause: OS RNG not yet seeded (not ready yet); cause: Try again (os error 11)), location: Location { file: "/Users/matt/.cargo/registry/src/git.colasdn.top-1ecc6299db9ec823/rand-0.6.5/src/rngs/thread.rs", line: 80, col: 17 } }

What type of application is this? (E.g. cryptography, game, numerical simulation)

Mobile application

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