def gnu_hash(s):
 h = 5381
 for c in s:
  h = ((h * 33) + ord(c))
 return (h & 4294967295)

def gnu_hash ( s ) : h = 5381 for c in s : h = ( ( h * 33 ) + ord ( c ) ) return ( h & 4294967295 )
gnu_hash -> int function used to generated gnu-style hashes for strings .