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
Optional Replicator mirror
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.
Your face IP:[184.108.40.206]
You are visitor number|