apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@rexursive.com>
Subject Re: Hash collision vectors in APR?
Date Thu, 05 Jan 2012 23:05:47 GMT
On Fri, 2012-01-06 at 09:48 +1100, Bojan Smojver wrote:
> The apr_hashfunc_t function prototype would then most likely have to
> change. We'd probably need to pass the hash itself into it, which
> would then hold the per-hash seed. Right?

Actually, that would not be a good plan. A custom hash function would
not be able to see inside the hash structure, because it's opaque. Most
likely, the seed itself would have to be passed around as the third
argument. Any other ideas?

PS. Of course, this kind of thing cannot be done before 2.0.


View raw message