Justin Erenkrantz <[EMAIL PROTECTED]> writes:
> This patch adds EGD-gathering support to apr_generate_random_bytes.
My hero! (though I might disagree on the socket details :) )
> At this time, you just specify the EGD socket at configure-time
> FWIW, I used --with-egd=/home/jerenkrantz/.entropy and started
> PRNGd with "prngd /home/jerenkrantz/.entropy" and ran the testrand
> I added to apr/test/.
>
> Ideally, I'd like to add an apr_generate_random_bytes_setup function
> that takes in a path name that will configure the random device
Do you mean something that could be a shell script to ensure that the
EGD is running?
> (you'd have to know what random device is being used APR, but it'd
> be useful). This will be even more useful if/when we add an internal
> entropy gatherer that will need a config file. We can have
> compiled-in defaults (see DEFAULT_EGD_SOCKET), but I'd like the
> application be able to override these choices. -- justin
>
> P.S. It'd be nice if apr_generate_random_bytes took in a pool...
silly APR sockets ;)
> Index: configure.in
> ===================================================================
> RCS file: /home/cvs/apr/configure.in,v
> + ])
> + if test "$rand" != "1"; then
> + if test "$ac_cv_lib_truerand_main" = "yes"; then
> + AC_DEFINE(HAVE_TRUERAND)
> + AC_MSG_RESULT(truerand)
> + rand="1"
> + else
> + AC_MSG_RESULT(not found)
> rand="0"
> + fi
maybe this truerand support should be junked (but that issue can wait
for another day)
--
Jeff Trawick | [EMAIL PROTECTED] | PGP public key at web site:
http://www.geocities.com/SiliconValley/Park/9289/
Born in Roswell... married an alien...