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 the APR_DELONCLOSE.


Reply via email to