Skip to content

Easy to run out of randomness on Android #804

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/github.com-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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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