Return-Path: X-Original-To: apmail-apr-dev-archive@www.apache.org Delivered-To: apmail-apr-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AE51DBFE9 for ; Tue, 10 Jan 2012 23:39:57 +0000 (UTC) Received: (qmail 53205 invoked by uid 500); 10 Jan 2012 23:39:57 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 53021 invoked by uid 500); 10 Jan 2012 23:39:56 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 53010 invoked by uid 99); 10 Jan 2012 23:39:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2012 23:39:56 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bojan@rexursive.com designates 150.101.121.179 as permitted sender) Received: from [150.101.121.179] (HELO beauty.rexursive.com) (150.101.121.179) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2012 23:39:50 +0000 Received: from [10.1.120.20] (shrek.rexursive.com [10.1.120.20]) by beauty.rexursive.com (Postfix) with ESMTPSA id 4DD7C1A95A0; Wed, 11 Jan 2012 10:39:28 +1100 (EST) Message-ID: <1326238768.14615.68.camel@shrek.rexursive.com> Subject: Re: Hash collision vectors in APR? From: Bojan Smojver To: Chris Darroch Cc: APR Development List Date: Wed, 11 Jan 2012 10:39:28 +1100 In-Reply-To: <4F0CC9CC.8050707@pearsoncmg.com> References: <4F05E1A9.7010408@rowe-clan.net> <1325801617.14615.31.camel@shrek.rexursive.com> <4F0626BA.6040905@rowe-clan.net> <1325803710.14615.34.camel@shrek.rexursive.com> <1325804747.14615.37.camel@shrek.rexursive.com> <1325807520.14615.39.camel@shrek.rexursive.com> <1326154944.14615.63.camel@shrek.rexursive.com> <4F0CC9CC.8050707@pearsoncmg.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.2 (3.2.2-1.fc16) Content-Transfer-Encoding: 7bit Mime-Version: 1.0 On Tue, 2012-01-10 at 15:29 -0800, Chris Darroch wrote: > Without having tested explicitly, it looks like the default case for > modern Linux is APR_HAS_RANDOM=1 and DEV_RANDOM=/dev/random, > with /dev/random blocking when there's no entropy. Don't think so (run on my F-16 machine, without passing any options to that effect): --------------- checking for entropy source... /dev/urandom --------------- If you look at the test, it has: --------------- for f in /dev/arandom /dev/urandom /dev/random; do --------------- So, non-blocking is preferred on Linux for sure. -- Bojan