Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Oct 16, 2024
1 parent 6138d67 commit c87d5d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nopanic_check/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fn panic(_info: &core::panic::PanicInfo) -> ! {
}

#[no_mangle]
pub extern "C" fn getrandom_wrapper(buf_ptr: *mut u8, buf_len: usize) -> u32 {
pub extern "C" fn getrandom_wrapper(_: *mut u8, _: usize) -> u32 {
// let buf = unsafe { core::slice::from_raw_parts_mut(buf_ptr.cast(), buf_len) };
// let res = getrandom::getrandom_uninit(buf).map(|_| ());
// unsafe { core::mem::transmute(res) }
Expand Down

0 comments on commit c87d5d6

Please sign in to comment.