aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string.c
diff options
context:
space:
mode:
authorKeith Packard <[email protected]>2015-03-18 07:17:00 +0000
committerHerbert Xu <[email protected]>2015-03-18 10:01:31 +0000
commit506bf0c0464ace57169aadcf02ae397999c57bdd (patch)
treeaee118b7cffedee93f827aa55dc7cb71f91d0e97 /lib/string.c
parentlinux-next: build failure after merge of the crypto tree (diff)
downloadkernel-506bf0c0464ace57169aadcf02ae397999c57bdd.tar.gz
kernel-506bf0c0464ace57169aadcf02ae397999c57bdd.zip
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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions