changed checksum prime/segment ratio

This commit is contained in:
Václav Šmejkal 2024-11-19 22:54:38 +01:00
parent 5833502c7a
commit c71b5275b5
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -25,7 +25,7 @@ extern "C" {
//MACROS
#define WHY2_CHECKSUM_SEGMENT_SIZE 4 //SEGMENT SIZE FOR CALCULATING CHECKSUM
#define WHY2_CHECKSUM_PRIME 5 //PRIME NUMBER FOR ROTATION
#define WHY2_CHECKSUM_PRIME 11 //PRIME NUMBER FOR ROTATION
//FUNCTIONS
unsigned long why2_checksum_segment(char *input); //TOO LONG TO EXPLAIN, DEAL WITH IT. TREAT IT LIKE A NORMAL CHECKSUM