is there any reason to use SuperFastHash in druntime? (except speed)

Vladimir Panteleev via Digitalmars-d digitalmars-d at puremagic.com
Thu May 28 05:39:52 PDT 2015


On Thursday, 28 May 2015 at 03:09:07 UTC, ketmar wrote:
> SuperFastHash has known distribution problems[1].

BTW, something I noticed while browsing Rust docs today:

> The hashes are all keyed by the thread-local random number 
> generator on creation by default. This means that the ordering 
> of the keys is randomized, but makes the tables more resistant 
> to denial-of-service attacks (Hash DoS).

http://doc.rust-lang.org/std/collections/struct.HashMap.html

As I understand, D is certainly vulnerable to Hash DoS.



More information about the Digitalmars-d mailing list