sha*_*kin 0 checksum bit-manipulation
long make_checksum(const char* str)
{
long chk=0;
long rot=0;
while(*str)
{
rot<<=9;
rot|=(rot>>23);
rot^=*(char*)str++;
chk+=rot;
}
return chk;
}
Run Code Online (Sandbox Code Playgroud)
不防水意味着:我有可能为两个不同的琴弦获得相同的校验和.