[+] I foresee pointer alignment providing us reduced hashmap key entropy -> always hash pointer at runtime
This commit is contained in:
parent
55857f4158
commit
45b935d0e0
@ -89,7 +89,11 @@ namespace AuHash
|
||||
{
|
||||
AuUInt operator ()(T *ptr) const
|
||||
{
|
||||
return AuUInt(ptr);
|
||||
#if defined(AURORA_IS_32BIT)
|
||||
return AuFnv1a32Runtime(&ptr, sizeof(T *));
|
||||
#else
|
||||
return AuFnv1a64Runtime(&ptr, sizeof(T *));
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user