mirror of https://github.com/BOINC/boinc.git
parent
27d7dbda4f
commit
8682362624
|
@ -218,6 +218,8 @@ int lock_file(char* filename) {
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: should use drand48 and/or drand_r (multithreaded re-entrant version)
|
||||||
|
// when available (check using autoconf) -- quarl
|
||||||
double drand() {
|
double drand() {
|
||||||
return (double)rand()/(double)RAND_MAX;
|
return (double)rand()/(double)RAND_MAX;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue