Changeset 3615 in Sophya for trunk/SophyaLib/BaseTools/randr48.h
- Timestamp:
- May 1, 2009, 1:34:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/randr48.h
r3612 r3615 14 14 #include "randinterf.h" 15 15 16 17 /* ------- SPECIFIQUE Mac Darwin OSX <= 10.2 (gcc < 3.x) -------- */ 18 #if defined(Darwin) && defined(__GNUC__) && (__GNUC__ < 3) 19 #include "osx_values.h" 20 /* Declaration de drand48 et srand48 etc , mis ds SysSpec, Reza 11/02/2003 */ 21 #ifdef __cplusplus 22 extern "C" { 23 #endif 24 unsigned short int * seed48(unsigned short int seed16v[3]); 25 void srand48(long seedval); 26 #ifdef __cplusplus 27 } 28 #endif 29 #define drand48() ((double)(random())/LONG_MAX) 30 #endif 31 /* ------- FIN SPECIFIQUE Mac OSX / Darwin V <= 10.2 --------- */ 32 33 16 34 namespace SOPHYA { 17 35 … … 27 45 virtual void GetSeed(uint_2 seed[3]); 28 46 virtual void AutoInit(int lp=0); 47 virtual void ShowRandom(); 29 48 30 49 friend class ObjFileIO<DR48RandGen> ; … … 54 73 virtual void GetSeed(uint_2 seed[3]); 55 74 virtual void AutoInit(int lp=0); 75 virtual void ShowRandom(); 56 76 57 77 friend class ObjFileIO<ThSDR48RandGen> ;
Note:
See TracChangeset
for help on using the changeset viewer.