diff --git a/src/lazy_importer.rs b/src/lazy_importer.rs index ae36889..d26075a 100644 --- a/src/lazy_importer.rs +++ b/src/lazy_importer.rs @@ -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::($library.as_bytes()) }, - { $crate::lazy_importer::hash_utf8::(stringify!($fname).as_bytes()) }, + { $crate::lazy_importer::hash_utf8::([$library.as_bytes()]) }, + { $crate::lazy_importer::hash_utf8::([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::($library.as_bytes()) }, - { $crate::lazy_importer::hash_utf8::(stringify!($fname).as_bytes()) }, + { $crate::lazy_importer::hash_utf8::([$library.as_bytes()]) }, + { $crate::lazy_importer::hash_utf8::([stringify!($fname).as_bytes()]) }, SEED, () > = $crate::lazy_importer::LazyImport::new(); }