Agree, there is of course a limit to this and it needs to be documented. At some scale you would have to switch to 'really' use longs. For smaller scales it remains useful to provide this sort of thing.
I would also note the consequences of a collision are modest in a CF problem. The worst thing is that one of your users is actually getting recs for someone else. Which... is not good but it is not like a rocket crashes or a bank account gets wiped out. On Aug 4, 2009 3:28 PM, "Yonik Seeley" <[email protected]> wrote: On Tue, Aug 4, 2009 at 10:16 AM, Otis Gospodnetic<[email protected]> wrote: > Excellent, was thinking the same thing last night, too - I'm probably not the only person using St... The problem with using a hash is that they can generate collisions... using an excellent 64 bit hash will only allow millions (at most) of ids before the probability of collision becomes to great. At ~190M ids, the probability of collision becomes .1% - too high to rely on the output of such a system with confidence. -Yonik http://www.lucidimagination.com
