Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 88060 invoked from network); 3 Oct 2008 04:51:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Oct 2008 04:51:32 -0000 Received: (qmail 15143 invoked by uid 500); 3 Oct 2008 04:51:30 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 15101 invoked by uid 500); 3 Oct 2008 04:51:30 -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 15090 invoked by uid 99); 3 Oct 2008 04:51:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Oct 2008 21:51:30 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.18.98.31] (HELO brmea-mail-1.sun.com) (192.18.98.31) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Oct 2008 04:50:27 +0000 Received: from fe-amer-10.sun.com ([192.18.109.80]) by brmea-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id m934p1um025426 for ; Fri, 3 Oct 2008 04:51:01 GMT Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0K8500G01BXVF300@mail-amer.sun.com> (original mail from Tim.Bray@Sun.COM) for dev@apr.apache.org; Thu, 02 Oct 2008 22:51:01 -0600 (MDT) Received: from [192.168.1.57] (fatwire-35-14.uniserve.ca [204.174.35.63]) by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0K8500GZ0C4ZKA40@mail-amer.sun.com>; Thu, 02 Oct 2008 22:51:01 -0600 (MDT) Date: Thu, 02 Oct 2008 21:50:57 -0700 From: Tim Bray Subject: Re: random functions tutorial? In-reply-to: <48E58D7F.5050507@force-elite.com> Sender: Tim.Bray@Sun.COM To: Paul Querna Cc: APR Development List Message-id: <005D034E-BAB4-4F05-840F-F3CD44CA1951@Sun.COM> MIME-version: 1.0 X-Mailer: Apple Mail (2.929.2) Content-type: text/plain; delsp=yes; format=flowed; charset=US-ASCII Content-transfer-encoding: 7BIT References: <9AB08326-0D48-497E-827D-B1C0DA0C419A@sun.com> <48E58D7F.5050507@force-elite.com> X-Virus-Checked: Checked by ClamAV on apache.org On Oct 2, 2008, at 8:11 PM, Paul Querna wrote: > Tim Bray wrote: >> I stupidly used random() and srandom() in my module to generate >> "random" filenames at high volume and, well, sigh. Anyhow, the >> page at http://apr.apache.org/docs/apr/1.3/group__apr__random.html >> lacks tutorial value. Anyone written up the *right* way to use >> these? -T > > Ignore all of them except apr_generate_random_bytes. Exactly what I needed to know. Thank you. -Tim