Allow IPv6 address entry in tools>ping - Loosens valid character check
[tomato/davidwu.git] / release / src / router / openssl / MacOS / Randomizer.h
blob565537b15dfb951adb0c1ad0ec45b34d83f39ab1
2 // Gathers unpredictable system data to be used for generating
3 // random bits
5 #include <MacTypes.h>
7 class CRandomizer
9 public:
10 CRandomizer (void);
11 void PeriodicAction (void);
13 private:
15 // Private calls
17 void AddTimeSinceMachineStartup (void);
18 void AddAbsoluteSystemStartupTime (void);
19 void AddAppRunningTime (void);
20 void AddStartupVolumeInfo (void);
21 void AddFiller (void);
23 void AddCurrentMouse (void);
24 void AddNow (double millisecondUncertainty);
25 void AddBytes (void *data, long size, double entropy);
27 void GetTimeBaseResolution (void);
28 unsigned long SysTimer (void);
30 // System Info
31 bool mSupportsLargeVolumes;
32 bool mIsPowerPC;
33 bool mIs601;
35 // Time info
36 double mTimebaseTicksPerMillisec;
37 unsigned long mLastPeriodicTicks;
39 // Mouse info
40 long mSamplePeriod;
41 Point mLastMouse;
42 long mMouseStill;