problem in entropy.c if no getrusage
Michael Stone
mstone at cs.loyola.edu
Fri Jun 16 04:01:37 EST 2000
entropy.c assumes RUSAGE_SELF and RUSAGE_CHILDREN
*** entropy.c.orig Thu Jun 15 13:57:28 2000
--- entropy.c Thu Jun 15 13:58:25 2000
***************
*** 201,207 ****
--- 201,209 ----
total_entropy_estimate += stir_gettimeofday(1.0);
total_entropy_estimate += stir_clock(0.2);
+ #ifdef HAVE_GETRUSAGE
total_entropy_estimate += stir_rusage(RUSAGE_SELF, 2.0);
+ #endif
return(total_entropy_estimate);
}
***************
*** 247,254 ****
--- 249,258 ----
/* Execution times should be a little unpredictable */
total_entropy_estimate += stir_gettimeofday(0.05);
total_entropy_estimate += stir_clock(0.05);
+ #ifdef HAVE_GETRUSAGE
total_entropy_estimate += stir_rusage(RUSAGE_SELF, 0.1);
total_entropy_estimate += stir_rusage(RUSAGE_CHILDREN, 0.1);
+ #endif
} else {
#ifdef DEBUG_ENTROPY
debug("Command '%s' disabled (badness %d)",
--
Mike Stone
More information about the openssh-unix-dev
mailing list