All pastes #383954 Raw Edit

Unnamed

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