Skip to content

Commit ba742cb

Browse files
authored
Fix is_getrandom_available
1 parent 919a91f commit ba742cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/linux_android_with_fallback.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub fn getrandom_inner(dest: &mut [MaybeUninit<u8>]) -> Result<(), Error> {
1717
}
1818

1919
fn is_getrandom_available() -> bool {
20-
if getrandom_syscall(&[]) < 0 {
20+
if getrandom_syscall(&mut []) < 0 {
2121
match last_os_error().raw_os_error() {
2222
Some(libc::ENOSYS) => false, // No kernel support
2323
#[cfg(target_os = "linux")]

0 commit comments

Comments
 (0)