top | item 31292167

(no title)

getup8 | 3 years 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?

discuss

order

Robin_Message|3 years ago

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.

akx|3 years ago

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