diff options
author | marha <marha@users.sourceforge.net> | 2015-02-22 21:39:56 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2015-02-22 21:39:56 +0100 |
commit | 462f18c7b25fe3e467f837647d07ab0a78aa8d2b (patch) | |
tree | fc8013c0a1bac05a1945846c1697e973f4c35013 /openssl/MacOS/Randomizer.h | |
parent | 36f711ee12b6dd5184198abed3aa551efb585587 (diff) | |
download | vcxsrv-462f18c7b25fe3e467f837647d07ab0a78aa8d2b.tar.gz vcxsrv-462f18c7b25fe3e467f837647d07ab0a78aa8d2b.tar.bz2 vcxsrv-462f18c7b25fe3e467f837647d07ab0a78aa8d2b.zip |
Merged origin/release (checked in because wanted to merge new stuff)
Diffstat (limited to 'openssl/MacOS/Randomizer.h')
-rw-r--r-- | openssl/MacOS/Randomizer.h | 75 |
1 files changed, 37 insertions, 38 deletions
diff --git a/openssl/MacOS/Randomizer.h b/openssl/MacOS/Randomizer.h index 565537b15..7c8b07626 100644 --- a/openssl/MacOS/Randomizer.h +++ b/openssl/MacOS/Randomizer.h @@ -1,43 +1,42 @@ -// Gathers unpredictable system data to be used for generating -// random bits +// Gathers unpredictable system data to be used for generating +// random bits #include <MacTypes.h> -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; +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; }; |