Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/rndtest/rndtest.c
Show First 20 Lines • Show All 143 Lines • ▼ Show 20 Lines | rndtest_harvest(struct rndtest_state *rsp, void *buf, u_int len) | ||||
} | } | ||||
/* | /* | ||||
* Only stir entropy that passes muster into the pool. | * Only stir entropy that passes muster into the pool. | ||||
*/ | */ | ||||
if (rsp->rs_discard) | if (rsp->rs_discard) | ||||
rndstats.rst_discard += len; | rndstats.rst_discard += len; | ||||
else | else | ||||
/* MarkM: FIX!! Check that this does not swamp the harvester! */ | /* MarkM: FIX!! Check that this does not swamp the harvester! */ | ||||
random_harvest_queue(buf, len, len*NBBY/2, RANDOM_PURE_RNDTEST); | random_harvest_queue(buf, len, RANDOM_PURE_RNDTEST); | ||||
} | } | ||||
static void | static void | ||||
rndtest_test(struct rndtest_state *rsp) | rndtest_test(struct rndtest_state *rsp) | ||||
{ | { | ||||
int i, rv = 0; | int i, rv = 0; | ||||
rndstats.rst_tests++; | rndstats.rst_tests++; | ||||
▲ Show 20 Lines • Show All 243 Lines • Show Last 20 Lines |