Changeset 3838 in Sophya for trunk/SophyaLib/BaseTools/randr48.h
- Timestamp:
- Aug 9, 2010, 7:31:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/randr48.h
r3739 r3838 15 15 16 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 __cplusplus22 extern "C" {23 #endif24 unsigned short int * seed48(unsigned short int seed16v[3]);25 void srand48(long seedval);26 #ifdef __cplusplus27 }28 #endif29 #define drand48() ((double)(random())/LONG_MAX)30 #endif31 /* ------- FIN SPECIFIQUE Mac OSX / Darwin V <= 10.2 --------- */32 33 34 17 namespace SOPHYA { 35 18 36 // ! Implementation of the RandomGeneratorInterface class using drand48() functions19 // Implementation de RandomGeneratorInterface avec drand48() 37 20 class DR48RandGen : public RandomGeneratorInterface { 38 21 … … 60 43 //-------------------------------------------------------------------------------- 61 44 62 // ! Version thread-safe de RandomGeneratorInterface avec drand48() functions45 // Version thread-safe de DR48RandGen 63 46 class ThSDR48RandGen : public DR48RandGen { 64 47
Note:
See TracChangeset
for help on using the changeset viewer.