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.