svn path=/trunk/boinc/; revision=1282
This commit is contained in:
Karl Chen 2003-06-03 18:15:37 +00:00
parent 27d7dbda4f
commit 8682362624
1 changed files with 2 additions and 0 deletions

View File

@ -218,6 +218,8 @@ int lock_file(char* filename) {
return retval;
}
// TODO: should use drand48 and/or drand_r (multithreaded re-entrant version)
// when available (check using autoconf) -- quarl
double drand() {
return (double)rand()/(double)RAND_MAX;
}