use index

This commit is contained in:
Татьяна Фарбер 2025-12-24 18:21:24 +04:00
parent 9fe2baa187
commit ce3aedce18

View File

@ -77,7 +77,7 @@ unsigned long __generate_hash(char* str) {
unsigned long ret = 0;
size_t max = strlen(str);
while (pos < max) {
ret += (unsigned char)str[pos];
ret += (unsigned char)str[pos]*pos;
if (ret > (unsigned long)ULONG_MAX - 10) ret = 32;
pos ++;
}
@ -326,4 +326,4 @@ int parse_file_data(int argc, char** argv) {
#undef true
#undef false
#endif
#endif