rem: Ns_MasterLock();
add: Ns_CsEnter(&lock);
context: Ns_DRand(void){    static int initialized;    if (!initialized) {	Ns_MasterLock();	if (!initialized) {	    unsigned long seed;	    Ns_GenSeeds(&seed, 1);#ifdef HAVE_RAND48    	    srand48(seed);#elif defined(HAVE_RANDOM)    	    srandom((unsigned int) seed);#else    	    srand((unsigned int) seed);#endif	    initialized = 1;	}	Ns_MasterUnlock();    }#if HAVE_RAND48    return drand48();#elif HAVE_RANDOM    return ((double) random() / (LONG_MAX + 1.0));#else    return ((double) rand() / (RAND_MAX + 1.0));#endif}