On Thu, 2012-01-12 at 19:58 -0800, Chris Darroch wrote:
> +    if (strcmp(DEV_RANDOM, "/dev/random") != 0 &&
> +        apr_generate_random_bytes((unsigned char *)&ht->seed,
> +                                  sizeof(ht->seed)) != APR_SUCCESS) 

This probably wouldn't work as expected. If you had /dev/random selected
for DEV_RANDOM, the if would fail and srand()/rand() bit would never get
called. No?

-- 
Bojan

Reply via email to