We already have this. You just need to implement Hasher.

On Wed, Feb 26, 2014 at 7:14 PM, Tony Arcieri <[email protected]> wrote:
> On Wed, Feb 26, 2014 at 4:10 PM, Richard Gomes <[email protected]>
> wrote:
>>
>> I suggest that the user should have the ability to chose the hash
>> algorithm to be employed among a repertoire of some available hash
>> algorithms or maybe an implementation of Hasher that the user decides to
>> create.
>
>
> I'd suggest the "default" hash function be hashDoS proof (since
> attacker-controlled data has the tendency to leak deep into programs),
> however a specifically performance-oriented hash/map (which isn't
> hashDoS/collision resistant) should be available for those who want to opt
> into it.
>
> --
> Tony Arcieri
>
> _______________________________________________
> Rust-dev mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/rust-dev
>
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to