Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compare 2 text files using checksum
Message
De
19/11/2009 09:40:25
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01434733
Message ID:
01435576
Vues:
44
>>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform