Bug 14414 – allow to set hash seed

Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-04-05T20:53:00Z
Last change time
2016-10-17T17:13:43Z
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2015-04-05T20:53:51Z
In order to mitigate the chance for hash table DoS attacks, we should make it possible to set the hash seed. extern(C) void _d_setHashSeed(int seed); http://forum.dlang.org/post/[email protected]
Comment #1 by dfj1esp02 — 2016-09-14T12:04:45Z
Another possibility is to change the hash algorithm adaptively by counting collisions.
Comment #2 by dfj1esp02 — 2016-10-17T17:13:43Z
Looks like perl solution is not this simple? http://perldoc.perl.org/perlsec.html#Algorithmic-Complexity-Attacks *** This issue has been marked as a duplicate of issue 7179 ***