mozilla/rust — pull request #8545 by blake2-ppc (2013-08-15 22:12:42+00:00)
Title: IterBytees: Delimit sequences &[A] and ~str when hashing 

Address issue #5257, for example these values all had the same hash value:

("aaa", "bbb", "ccc")
("aaab", "bb", "ccc")
("aaabbb", "", "ccc")

IterBytes for &[A] now includes the length, before calling iter_bytes on
each element.

IterBytes for &str is now terminated by a byte that does not appear in
UTF-8. This way only one more byte is processed when hashing strings.