Googles appar
Huvudmeny

Post a Comment On: cbloom rants

"11-28-08 - Chance of CRC being bad"

4 Comments -

1 – 4 of 4
Blogger won3d said...

The problem is that CRC32(mystring) is not actually that random. You would need a cryptographic hash for that property. You get stronger guarantees, like probable universal uniqueness (it is basically a GUID).

http://mail.python.org/pipermail/python-list/2004-November/291869.html

November 28, 2008 at 1:39 PM

Blogger cbloom said...

Yeah I'd be curious to see the actual measured collision rate on various types of data. I almost just did it myself but then said "meh".

November 28, 2008 at 10:32 PM

Blogger Assen said...

Why do you care about the fact that you have 100 customers? You don't care about collisions across customers, so the overall number of assets in one pool is still the same.

November 29, 2008 at 1:15 PM

Blogger cbloom said...

"Why do you care about the fact that you have 100 customers? You don't care about collisions across customers, so the overall number of assets in one pool is still the same."

Yeah, true, it's just that if there's a 1% chance per game that's a fine choice for a one game developer, but with 100 games the chance of *anyone* having a problem makes it very likely (63%) that somebody hits it. Still not really a big deal though.

November 29, 2008 at 2:06 PM

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.