J
Jon Skeet [C# MVP]
To be perfectly honest, I'm not sure how important it is for the hash
code to be absolutely random as opposed to just good.
I think to know that we'd have to know exactly what you mean by
"random". Completely evenly distributed?
I suspect it's beneficial because whatever the hashtable does to
process hashcodes, if you have some pattern/clustering to your data
you're more likely to get a poor distribution in terms of buckets.
However, I would hope that a good hashtable implementation would make
it *unlikely* that you'd see a problem. Then again, my understanding
of the *exact* implementation of hashtables is somewhat lacking.
I think that would be an interesting topic for a blog. I do try to
read your blog posts so I'll catch it if you do decide to post on the
topic.
I'll put it on my mental list of future posts
Jon