summaryrefslogtreecommitdiff
path: root/random
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2004-10-06 06:51:33 +0000
committerJoe Orton <jorton@apache.org>2004-10-06 06:51:33 +0000
commitd85a7a7e510f6907a98e032d76a4476a114674a7 (patch)
tree1d41410a4e51df7c0cef8af3f761b0d6cdd4abb1 /random
parent36158e128f834b0c66160a20fd1dda441453a096 (diff)
downloadapr-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.c4
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;