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.
is_getrandom_available
1 parent 919a91f commit ba742cbCopy full SHA for ba742cb
src/linux_android_with_fallback.rs
@@ -17,7 +17,7 @@ pub fn getrandom_inner(dest: &mut [MaybeUninit<u8>]) -> Result<(), Error> {
17
}
18
19
fn is_getrandom_available() -> bool {
20
- if getrandom_syscall(&[]) < 0 {
+ if getrandom_syscall(&mut []) < 0 {
21
match last_os_error().raw_os_error() {
22
Some(libc::ENOSYS) => false, // No kernel support
23
#[cfg(target_os = "linux")]
0 commit comments