Skip to content

Commit

Permalink
Update hash function to use primes (PRBonn#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybrunken authored and PGotzmann committed Oct 17, 2023
1 parent 0ed940b commit ac84e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/kiss_icp/core/VoxelHashMap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct VoxelHashMap {
struct VoxelHash {
size_t operator()(const Voxel &voxel) const {
const uint32_t *vec = reinterpret_cast<const uint32_t *>(voxel.data());
return ((1 << 20) - 1) & (vec[0] * 73856093 ^ vec[1] * 19349663 ^ vec[2] * 83492791);
return ((1 << 20) - 1) & (vec[0] * 73856093 ^ vec[1] * 19349669 ^ vec[2] * 83492791);
}
};

Expand Down

0 comments on commit ac84e1a

Please sign in to comment.