rednewguy
Full Member level 2
what is the best checksum method available now.
what i use is
let me say in C
for (i = 0; i < count; i++)
{
checksum = (checksum + data) % 256; /* say my checksum is 8bits */
}
checksum = -checksum;
but this is doesnt seem to be a good error detection system. is ther any alternative best algos for checksum.
thanks
what i use is
let me say in C
for (i = 0; i < count; i++)
{
checksum = (checksum + data) % 256; /* say my checksum is 8bits */
}
checksum = -checksum;
but this is doesnt seem to be a good error detection system. is ther any alternative best algos for checksum.
thanks