[+] I foresee pointer alignment providing us reduced hashmap key entropy -> always hash pointer at runtime

This commit is contained in:
Reece Wilson 2022-03-23 19:51:10 +00:00
parent 55857f4158
commit 45b935d0e0

View File

@ -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
}
};