forked from luck/tmp_suning_uos_patched
fae29f135e
quality field is currently documented as being 'per mill'. In fact the
math involved is:
add_hwgenerator_randomness((void *)rng_fillbuf, rc,
rc * current_quality * 8 >> 10);
thus the actual definition is "bits of entropy per 1024 bits of input".
The current documentation seems to have confused multiple people
in the past, let's fix the documentation to match code.
An alternative is to change core to match driver expectations, replacing
rc * current_quality * 8 >> 10
with
rc * current_quality / 1000
but that has performance costs, so probably isn't a good option.
Fixes:
|
||
---|---|---|
.. | ||
amd-rng.c | ||
atmel-rng.c | ||
bcm2835-rng.c | ||
cavium-rng-vf.c | ||
cavium-rng.c | ||
core.c | ||
exynos-trng.c | ||
geode-rng.c | ||
hisi-rng.c | ||
imx-rngc.c | ||
intel-rng.c | ||
iproc-rng200.c | ||
ixp4xx-rng.c | ||
Kconfig | ||
ks-sa-rng.c | ||
Makefile | ||
meson-rng.c | ||
mtk-rng.c | ||
mxc-rnga.c | ||
n2-asm.S | ||
n2-drv.c | ||
n2rng.h | ||
nomadik-rng.c | ||
octeon-rng.c | ||
omap-rng.c | ||
omap3-rom-rng.c | ||
pasemi-rng.c | ||
pic32-rng.c | ||
powernv-rng.c | ||
pseries-rng.c | ||
s390-trng.c | ||
st-rng.c | ||
stm32-rng.c | ||
timeriomem-rng.c | ||
tx4939-rng.c | ||
via-rng.c | ||
virtio-rng.c | ||
xgene-rng.c |