use 32 bit hash function instead
This commit is contained in:
parent
93d4831bd4
commit
d0e818939a
2 changed files with 4 additions and 4 deletions
|
@ -10,9 +10,9 @@ const char* checkbrute_version()
|
|||
return "0.1";
|
||||
}
|
||||
|
||||
uint64_t checkbrute_hash64(unsigned char* data, size_t size)
|
||||
uint32_t checkbrute_hash32(unsigned char* data, size_t size)
|
||||
{
|
||||
return (uint64_t)crc_16(data, size);
|
||||
return crc_16(data, size);
|
||||
}
|
||||
|
||||
int checkbrute_hashsz()
|
||||
|
|
|
@ -10,9 +10,9 @@ const char* checkbrute_version()
|
|||
return "0.1";
|
||||
}
|
||||
|
||||
uint64_t checkbrute_hash64(unsigned char* data, size_t size)
|
||||
uint32_t checkbrute_hash32(unsigned char* data, size_t size)
|
||||
{
|
||||
return (uint64_t)crc_32(data, size);
|
||||
return crc_32(data, size);
|
||||
}
|
||||
|
||||
int checkbrute_hashsz()
|
||||
|
|
Loading…
Reference in a new issue