rust-random / getrandom

A small cross-platform library for retrieving random data from (operating) system source
Apache License 2.0
275 stars 180 forks source link

Delegate to `linux_android` from `linux_android_with_fallback`. #459

Closed briansmith closed 3 months ago

briansmith commented 3 months ago

Instead of duplicating the implementation of linux_android::getrandom_inner inline, call linux_android::getrandom_inner, like we do for use_file::getrandom_inner. This way, there is no doubt that they do exactly the same thing. This then allows us to move getrandom_syscall to linux_android, which is where it belongs, since it is Linux/Android-specific.