Remix.run Logo
solardev a day ago

Can't you just concat a random number to their hash at the time of hashing? Like userId-1 to userId-100. Doesn't matter what hashing algorithm you use then. Then just divide the number by the number of buckets. < 49 goes to A, > 49 goes to B. The larger number just means you can split them into more buckets later if needed.