forgot to update macros

This commit is contained in:
Numbers
2025-05-18 03:44:16 +02:00
parent 71fa023c73
commit 1faa1a9702

View File

@@ -8,8 +8,8 @@
macro_rules! make_seed {
() => {
{
let seed
= $crate::lazy_importer::hash_utf8::<0x00>(file!().as_bytes())
let seed
= $crate::lazy_importer::hash_utf8::<0x00,1>([file!().as_bytes()])
^ $crate::lazy_importer::Prng::new((column!() << 12) as u64 | (line!() as u64)).next();
seed
}
@@ -26,8 +26,8 @@ macro_rules! link {
pub mod $fname {
pub const SEED: u64 = $crate::lazy_importer::make_seed!();
pub static IMPORT: $crate::lazy_importer::LazyImport<
{ $crate::lazy_importer::hash_utf8::<SEED>($library.as_bytes()) },
{ $crate::lazy_importer::hash_utf8::<SEED>(stringify!($fname).as_bytes()) },
{ $crate::lazy_importer::hash_utf8::<SEED,1>([$library.as_bytes()]) },
{ $crate::lazy_importer::hash_utf8::<SEED,1>([stringify!($fname).as_bytes()]) },
SEED, ()
> = $crate::lazy_importer::LazyImport::new();
}
@@ -44,8 +44,8 @@ macro_rules! link {
pub mod $fname {
pub const SEED: u64 = $crate::lazy_importer::make_seed!();
pub static IMPORT: $crate::lazy_importer::LazyImport<
{ $crate::lazy_importer::hash_utf8::<SEED>($library.as_bytes()) },
{ $crate::lazy_importer::hash_utf8::<SEED>(stringify!($fname).as_bytes()) },
{ $crate::lazy_importer::hash_utf8::<SEED,1>([$library.as_bytes()]) },
{ $crate::lazy_importer::hash_utf8::<SEED,1>([stringify!($fname).as_bytes()]) },
SEED, ()
> = $crate::lazy_importer::LazyImport::new();
}