From aba277548b76071e75fc9478002a6fc2145f64f1 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Mon, 9 Oct 2006 16:31:22 +0000 Subject: Tag vendor OpenSSL 0.9.8d svn path=/openssl/vendor/0.9.8d; revision=376 --- openssl/vendor/0.9.8d/MacOS/Randomizer.h | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 openssl/vendor/0.9.8d/MacOS/Randomizer.h (limited to 'openssl/vendor/0.9.8d/MacOS/Randomizer.h') diff --git a/openssl/vendor/0.9.8d/MacOS/Randomizer.h b/openssl/vendor/0.9.8d/MacOS/Randomizer.h new file mode 100644 index 00000000..565537b1 --- /dev/null +++ b/openssl/vendor/0.9.8d/MacOS/Randomizer.h @@ -0,0 +1,43 @@ + +// Gathers unpredictable system data to be used for generating +// random bits + +#include + +class CRandomizer +{ +public: + CRandomizer (void); + void PeriodicAction (void); + +private: + + // Private calls + + void AddTimeSinceMachineStartup (void); + void AddAbsoluteSystemStartupTime (void); + void AddAppRunningTime (void); + void AddStartupVolumeInfo (void); + void AddFiller (void); + + void AddCurrentMouse (void); + void AddNow (double millisecondUncertainty); + void AddBytes (void *data, long size, double entropy); + + void GetTimeBaseResolution (void); + unsigned long SysTimer (void); + + // System Info + bool mSupportsLargeVolumes; + bool mIsPowerPC; + bool mIs601; + + // Time info + double mTimebaseTicksPerMillisec; + unsigned long mLastPeriodicTicks; + + // Mouse info + long mSamplePeriod; + Point mLastMouse; + long mMouseStill; +}; -- cgit v1.2.3