Beware Adler32.update ( int )! It accepts only an unsigned 8-bit byte packed in the low order bits of an int. You can’t feed update() a 32-bit int.
Adler-32 has a weakness for very short messages. For very short packets, Adler-32 is guaranteed to give poor coverage of the available bits.
If you need a shorter value, take the modulus by a prime. Don’t just sample the low order bits.
This page is posted |
http://mindprod.com/jgloss/adler.html | |
Optional Replicator mirror
|
J:\mindprod\jgloss\adler.html | |
Please read the feedback from other visitors,
or send your own feedback about the site. Contact Roedy. Please feel free to link to this page without explicit permission. | ||
Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[18.227.134.165] |
| |
Feedback |
You are visitor number | |