--On Tuesday, October 14, 2003 11:02 AM -0400 [EMAIL PROTECTED] wrote:

I'm not a Mac programmer, but I'm playing proxy for them.  We will need
to support Mac down to OS9 and I'd like an idea how they will seed the
PRNG.  For instance, on Windows there's at least a last resort of
RAND_screen().  On the MacOS 10 systems they probably have some sort of
/dev/random available.  But I have no idea what support (if any) exists
for pre-Mach Macs.  Does anybody know?

The file Randmizer.cpp in the MacOS directory includes code for gathering entropy, from a number of sources. I used it to build OpenSSL for classic Mac OS.


I added the code


static CRandomizer& Randomizer() { static CRandomizer randomizer; return randomizer; }

extern "C" int RAND_poll(void)
{
   Randomizer().PeriodicAction();
}

to the file after the #include directives.

Josh

--
Joshua Juran
Metamage Software Creations - Mac Software and Consulting
http://www.metamage.com/

* Creation at the highest state of the art *


______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]

Reply via email to