From jorton@apache.org Wed Oct 6 06:51:37 2004 Return-Path: Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 21338 invoked by uid 99); 6 Oct 2004 06:51:37 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 05 Oct 2004 23:51:37 -0700 Received: (qmail 92969 invoked by uid 1582); 6 Oct 2004 06:51:33 -0000 Date: 6 Oct 2004 06:51:33 -0000 Message-ID: <20041006065133.92968.qmail@minotaur.apache.org> From: jorton@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr/random/unix apr_random.c X-Virus-Checked: Checked jorton 2004/10/05 23:51:33 Modified: random/unix apr_random.c Log: * random/unix/apr_random.c (apr_random_init): Zero-initialize H and H_waiting fields to fix spurious test failures. Submitted by: Mladen Turk Revision Changes Path 1.10 +2 -2 apr/random/unix/apr_random.c Index: apr_random.c =================================================================== RCS file: /home/cvs/apr/random/unix/apr_random.c,v retrieving revision 1.9 retrieving revision 1.10 diff -d -w -u -r1.9 -r1.10 --- apr_random.c 28 Feb 2004 18:31:41 -0000 1.9 +++ apr_random.c 6 Oct 2004 06:51:33 -0000 1.10 @@ -111,8 +111,8 @@ /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;