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