diff options
author | Joe Orton <jorton@apache.org> | 2004-10-06 06:51:33 +0000 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2004-10-06 06:51:33 +0000 |
commit | d85a7a7e510f6907a98e032d76a4476a114674a7 (patch) | |
tree | 1d41410a4e51df7c0cef8af3f761b0d6cdd4abb1 /random | |
parent | 36158e128f834b0c66160a20fd1dda441453a096 (diff) | |
download | apr-d85a7a7e510f6907a98e032d76a4476a114674a7.tar.gz |
* random/unix/apr_random.c (apr_random_init): Zero-initialize H and
H_waiting fields to fix spurious test failures.
Submitted by: Mladen Turk
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65361 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'random')
-rw-r--r-- | random/unix/apr_random.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/random/unix/apr_random.c b/random/unix/apr_random.c index b4daeb2f5..49af49079 100644 --- a/random/unix/apr_random.c +++ b/random/unix/apr_random.c @@ -111,8 +111,8 @@ APR_DECLARE(void) apr_random_init(apr_random_t *g,apr_pool_t *p, /2)*g->pool_hash->size*2; g->reseed_size = APR_RANDOM_DEFAULT_RESEED_SIZE; - g->H = apr_palloc(p,H_size(g)); - g->H_waiting = apr_palloc(p,H_size(g)); + g->H = apr_pcalloc(p,H_size(g)); + g->H_waiting = apr_pcalloc(p,H_size(g)); g->randomness = apr_palloc(p,B_size(g)); g->random_bytes = 0; |