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 Tue, 10 Jan 2012 00:22:24 GMT
On Fri, 2012-01-06 at 10:52 +1100, Bojan Smojver wrote:
> +    if (apr_generate_random_bytes(
> +            (unsigned char *)&ht->seed, sizeof(ht->seed)) != APR_SUCCESS)
> +        return NULL;

Chris,

What I mean is, instead of return NULL, we could have ht->seed =
(unsigned int) ht. Not as random as /dev/urandom, but probably better
than zero.

-- 
Bojan


Mime
View raw message