Skip to content

Windows: should we fall back to RtlGenRandom if BCryptGenRandom fails #314

@josephlr

Description

@josephlr

In #65 we decided to use BCryptGenRandom instead of RtlGenRandom. I still think this is the correct decision.

However, Rust has seen issues (rust-lang/rust#94098 and rust-lang/rust#99341) around such use. To fix these issues they decided to use RtlGenRandom again, but only as a fallback mechanism (rust-lang/rust#96917).

Should we do the same?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions