Skip to content

Provide a custom getrandom (crate) implementation #43

@AzureMarker

Description

@AzureMarker

The getrandom crate fails to compile for unsupported systems (they don't blanket support unix-like systems), but it has a mechanism we can use to register a custom backing implementation:
https://docs.rs/getrandom/latest/getrandom/#unsupported-targets
https://docs.rs/getrandom/latest/getrandom/macro.register_custom_getrandom.html

We could implement this in ctru-rs and users would be able to use getrandom without issues.

Alternatively (and maybe in parallel), we could make a PR to getrandom to add support. We'd have to make sure to only depend on libc::get_random and not libctru.

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