All pastes #383953 Raw Edit

Someone

public text v1 · immutable
·published 2007-03-06 18:49 UTC
rendered paste body
uint Hash(string s)
{
    uint hash = 0;
    foreach (char c in s)
    {
        hash = hash * 33 + (uint) c;
    }
    return hash;
}