Skip to content

Instantly share code, notes, and snippets.

@default-kramer
Last active December 24, 2015 11:59
Show Gist options
  • Save default-kramer/6794790 to your computer and use it in GitHub Desktop.
Save default-kramer/6794790 to your computer and use it in GitHub Desktop.
public static int GenerateHash(params int[] hashCodes)
{
unchecked
{
int hash = 17;
foreach (int i in hashCodes)
{
hash = hash * 23 + i;
}
return hash;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment