Skip to content

Commit

Permalink
k-hashv32, k-hashv64: fix arm builds, including macos-14-arm64
Browse files Browse the repository at this point in the history
Verification value 0x9FBDD2B1 for k-hashv32 and 0x70E67C61 for k-hashv64
signal, that the has was not properly seeded. Currently, k-hashv32
and k-hashv64 are compiled depending on HAVE_KHASHV from CMakeLists.txt,
so initialization should be done depending on same macro as well.

See rurban#294
  • Loading branch information
darkk committed Sep 26, 2024
1 parent cde8f69 commit 6cc35a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -939,10 +939,10 @@ bool Hash_Seed_init (pfHash hash, size_t seed) {
else if(hash == hashx_test)
hashx_seed_init(info, seed);
*/
# ifdef HAVE_KHASHV
#endif
#ifdef HAVE_KHASHV
else if(hash == khashv64_test || hash == khashv32_test)
khashv_seed_init(seed);
# endif
#endif
else if(hash == polymur_test)
polymur_seed_init(seed);
Expand Down

0 comments on commit 6cc35a3

Please sign in to comment.