nhorman / rng-tools

The rng-tools official repository (formerly part of the gkernel project on sourceforge)
GNU General Public License v2.0
156 stars 62 forks source link

Fix random_step boundary #190

Closed ggvl closed 1 year ago

ggvl commented 1 year ago

As buffer size in do_loop() is FIPS_RNG_BUFFER_SIZE, so the random_step should not bigger. If random_step > FIPS_RNG_BUFFER_SIZE, update_kernel_random() will not write any date.

Signed-off-by: lvgenggeng lvgenggeng@uniontech.com