Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compare 2 text files using checksum
Message
From
19/11/2009 09:40:25
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01434733
Message ID:
01435576
Views:
43
>>This particular checksum gives 65,000 different values, and it is designed so that a change to a single byte will give a different result. Changes in several places in the document should give you a probability of about 1/65,000, or 0.0015%, of a collision.
>
>Thanks a lot Hilmar.

Dragan mentioned, elsewhere on this thread, that there is a new option in Visual FoxPro 9, for the sys(2007) function. This will do a 32-bit checksum, instead of the traditional 16-bit checksum. The probability of a collision in this case should be about 1 / 4000 million.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform