Commit 88a9534
committed
Use length prefix in default
Using a 0xFF trailer is only correct for bytewise hashes. A generic
`Hasher` is not necessarily bytewise, so use a length prefix in the
default implementation instead.Hasher::write_str
1 parent 33c245b commit 88a9534
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
| 552 | + | |
552 | 553 | | |
553 | | - | |
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
| |||
0 commit comments