Add -ldl to the build of mttest.c
[openssl.git] / MacOS / Randomizer.h
index 565537b15dfb951adb0c1ad0ec45b34d83f39ab1..7c8b07626b42f653bc96721bef234505fac39c8b 100644 (file)
@@ -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;
 };