custom: rename __getrandom_internal to follow Rust conventions (#369)

This commit is contained in:
Joe Richey
2023-09-01 03:50:49 -07:00
committed by GitHub
parent 2e483d68aa
commit 1308930985
+1 -1
View File
@@ -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 {