Skip to content

Commit 563eac2

Browse files
committed
Fix 3ds
1 parent 8966277 commit 563eac2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/3ds.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ use crate::util_libc::sys_fill_exact;
1111
use crate::Error;
1212

1313
pub unsafe fn getrandom_inner(dst: *mut u8, len: usize) -> Result<(), Error> {
14-
sys_fill_exact(dst, len, |dst, len| libc::getrandom(buf.cast(), len, 0))
14+
sys_fill_exact(dst, len, |dst, len| libc::getrandom(dst.cast(), len, 0))
1515
}

0 commit comments

Comments
 (0)