<p>Do you have any advice/rules on selecting a multiplier to use in a (multiplicative) hash function. The function is computing the hash value of a string.</p>

[{'answer_id': 16892, 'author': 'wvdschel', 'author_id': 2018, 'author_profile': 'https://Stackoverflow.com/users/2018', 'pm_score': 1, 'selected': False, 'text': '<p>Historically 33 seems like a popular choice, and it tends to work pretty well. No one knows why though. For more details, <a href="http://www.cse.yorku.ca/~oz/hash.html" rel="nofollow noreferrer">look here</a></p>\n'}, {'answer_id': 16903, 'author': 'Ryan Fox', 'author_id': 55, 'author_profile': 'https://Stackoverflow.com/users/55', 'pm_score': 3, 'selected': True, 'text': "<p>You want to use something that is relatively prime to the size of your set. That way, when you loop around, you won't end up on the same numbers you just tried.</p>\n"}, {'answer_id': 16908, 'author': 'Mike Deck', 'author_id': 1247, 'author_profile': 'https://Stackoverflow.com/users/1247', 'pm_score': 2, 'selected': False, 'text': '<p>I had an interesting discussion with a coworker about hash function recently.  Our conclusions were as follows:</p>\n\n<p>If you really need to write a good hash function that minimizes collisions more than the default implementations available in the standard languages you need an advanced degree in mathematics.</p>\n\n<p>If you\'re writing applications where a custom hash function will noticeably improve the performance of your application, you\'re Google and you\'ve got plenty of Math PhDs to do the work.</p>\n\n<p>Sorry to not directly answer your question, but the bottom line is that there\'s really no need to write your own hash function for String.  What language are you working with?  I\'d imagine there\'s an easy way to compute a "good enough" hash code.</p>\n'}]
['https://Stackoverflow.com/questions/16873', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/381/']