forgot to update macros
This commit is contained in:
@@ -9,7 +9,7 @@ macro_rules! make_seed {
|
||||
() => {
|
||||
{
|
||||
let seed
|
||||
= $crate::lazy_importer::hash_utf8::<0x00>(file!().as_bytes())
|
||||
= $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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user