Compute an Adler-32 value for lightweight stream corruption detection.
Two 16-bit sums update for each byte: s1 accumulates values and s2 accumulates s1; both are reduced modulo 65521 and packed into the final value. It is fast but weaker than CRC-32 for some short or patterned inputs.
Hello, World!
1f9e046a
zlib streams, lightweight transfers, and compressed-block tests use Adler-32 values.