etl/include
Roland Reichwein 165674cb23
Fix etl::pearson::reset() not resetting the first-byte flag (#1487)
reset() cleared the hash array but left the `first` flag false, so a
calculator reused after reset() took the XOR update path on its next
add() instead of the initialisation path. This produced an incorrect
hash for any pearson object that was reset and reused.

Reset `first` to true in reset() so a reset calculator behaves like a
freshly constructed one.

Add test_pearson_reset regression test.

Co-authored-by: John Wellbelove <jwellbelove@users.noreply.github.com>
2026-07-07 16:41:50 +02:00
..
etl Fix etl::pearson::reset() not resetting the first-byte flag (#1487) 2026-07-07 16:41:50 +02:00