apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Querna <c...@force-elite.com>
Subject Re: random functions tutorial?
Date Fri, 03 Oct 2008 03:11:59 GMT
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.

For making temp files, also consider apr_file_mktemp, with or without 

View raw message