According to https://doc.rust-lang.org/beta/rustc/platform-support.html, there are only a handful of target architectures where Rust supports kernels that are so old that they would not have the getrandom syscall. Notably riscv64gc and aarch64 are guaranteed to have getrandom according to the Rust kernel support policy. For those architectures we should not have enable the fallback logic at all. I suggest in particular that we have an allowlist of target architectures where we allow the fallback, which would be i686, x86_64, arm, armv7, powerpc, powerpc64, powerpc64le. s390x, i586, according to the Rust documents.
According to https://doc.rust-lang.org/beta/rustc/platform-support.html, there are only a handful of target architectures where Rust supports kernels that are so old that they would not have the
getrandomsyscall. Notablyriscv64gcandaarch64are guaranteed to havegetrandomaccording to the Rust kernel support policy. For those architectures we should not have enable the fallback logic at all. I suggest in particular that we have an allowlist of target architectures where we allow the fallback, which would bei686,x86_64,arm,armv7,powerpc,powerpc64,powerpc64le.s390x,i586, according to the Rust documents.