def hash_func(name):
ret = <NUM_LIT:0><EOL>for char in name:<EOL><INDENT>ret = ((ret << <NUM_LIT:5>) + ret + ord(char)) & <NUM_LIT><EOL><DEDENT>return hex(ret)<EOL>
Hash the string using a hash algorithm found in
    tombkeeper/Shellcode_Template_in_C.