SergiusIW / collider-rs

Rust library for continuous 2-D collision detection.
Apache License 2.0
92 stars 9 forks source link

change hasher from siphash to fnv #2

Closed gui1117 closed 8 years ago

gui1117 commented 8 years ago

fnv is hasher suitable for short keys but provides no protection against collision attacks.

In collider keys are from 4 to 8 bytes where fnv is better, see benchmark