Skip to content
Commit 506bf0c0 authored by Keith Packard's avatar Keith Packard Committed by Herbert Xu
Browse files

hwrng: core - allow perfect entropy from hardware devices



Hardware random number quality is measured from 0 (no entropy) to 1024
(perfect entropy). Allow hardware devices to assert the full range by
truncating the device-provided value at 1024 instead of 1023.

Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 7094e8ea
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment