commit | 506bf0c0464ace57169aadcf02ae397999c57bdd | [log] [tgz] |
---|---|---|
author | Keith Packard <keithp@keithp.com> | Wed Mar 18 00:17:00 2015 -0700 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Wed Mar 18 21:01:31 2015 +1100 |
tree | aee118b7cffedee93f827aa55dc7cb71f91d0e97 | |
parent | 7094e8ea4da3077ad03eb027fd45a7617dba3d95 [diff] |
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: Keith Packard <keithp@keithp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>