Skip to content

Commit

Permalink
custom: rename __getrandom_internal to follow Rust conventions (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephlr committed Sep 1, 2023
1 parent 2e483d6 commit 1308930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/custom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ use core::{mem::MaybeUninit, num::NonZeroU32};
macro_rules! register_custom_getrandom {
($path:path) => {
// TODO(MSRV 1.37): change to unnamed block
const __getrandom_internal: () = {
const __GETRANDOM_INTERNAL: () = {
// We use Rust ABI to be safe against potential panics in the passed function.
#[no_mangle]
unsafe fn __getrandom_custom(dest: *mut u8, len: usize) -> u32 {
Expand Down

0 comments on commit 1308930

Please sign in to comment.