00001 /*! 00002 * \file random.C 00003 * \brief Contains the implementation of the non-inline functions of the 00004 * RandomGen class. 00005 * \ingroup group_MLIB 00006 * 00007 */ 00008 00009 #include "std/support.H" 00010 #include "random.H" 00011 00012 long mlib::RandomGen::R_MAX = RAND_MAX; 00013 00014 void 00015 mlib::RandomGen::update() { 00016 //REPLACE THIS WITH OUR SLY NEW CROSS PLATFORM RANDOM FUNCTION; 00017 //WORKS AS LONG AS A SEED DOES NOT RETURN ITSELF 00018 00019 srand48 ( _seed ) ; 00020 _seed = lrand48(); 00021 00022 }