Hacker News new | ask | show | jobs
by getup8 1505 days ago
We are considering using MD5 for user id + salt hashing for randomizing users for A/B testing. Should blake3 or xxhash work as a replacement for that use case?
2 comments

This article is focussed on performance of large data sets.

Unless you have gigabytes of user IDs to hash on a regular basis, it doesn't matter what hash you use aside from achieving the randomness you desire, which I imagine almost any function, even x%2==0, would achieve.

xxhash would work fine for this, especially since it has a seed value option (which would be your salt).