Revision 3fc0b1edad0c75d7beb51fa77f63ffe817295e2c authored by Viktor Dukhovni on 23 June 2014, 00:14:53 UTC, committed by Dr. Stephen Henson on 25 June 2014, 17:21:36 UTC
(cherry picked from commit a48fb0400c9c45d56144966b774998ebe37804ef)
1 parent 3d15d58
Randomizer.h
// 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;
};

Computing file changes ...