We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94e6986 commit 919a91fCopy full SHA for 919a91f
src/linux_android_with_fallback.rs
@@ -20,6 +20,7 @@ fn is_getrandom_available() -> bool {
20
if getrandom_syscall(&[]) < 0 {
21
match last_os_error().raw_os_error() {
22
Some(libc::ENOSYS) => false, // No kernel support
23
+ #[cfg(target_os = "linux")]
24
Some(libc::EPERM) => false, // Blocked by seccomp
25
_ => true,
26
}
0 commit comments