Changeset 2323 in Sophya for trunk/SophyaLib/BaseTools/srandgen.h
- Timestamp:
- Feb 11, 2003, 6:11:20 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/srandgen.h
r851 r2323 10 10 #ifdef __MWERKS__ 11 11 #include "unixmac.h" 12 #endif 13 14 #if defined(Darwin) && defined(__GNUC__) && (__GNUC__ < 3) 15 /* Declaration de drand48 et srand48 etc , mis ds SysSpec 16 Reza 11/02/2003 */ 17 unsigned short int * seed48 (unsigned short int seed16v[3]); 18 void srand48 (long seedval); 19 /* Faute de mieux pour le moment : */ 20 double drand48() { return ((double)(random())/LONG_MAX) ; } 12 21 #endif 13 22
Note:
See TracChangeset
for help on using the changeset viewer.