summaryrefslogtreecommitdiffstats
path: root/sys/dev/random/randomdev.h
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2013-10-13 00:10:48 +0000
committermarkm <markm@FreeBSD.org>2013-10-13 00:10:48 +0000
commit83b1e9e4bb49c8a0df1b476c73c46ce03377e139 (patch)
treeec3e4f6e22cf316f8c32afc141209846fb73f114 /sys/dev/random/randomdev.h
parent7354418b3738cde1beceb72f0a9c4e2c75cd4198 (diff)
downloadFreeBSD-src-83b1e9e4bb49c8a0df1b476c73c46ce03377e139.zip
FreeBSD-src-83b1e9e4bb49c8a0df1b476c73c46ce03377e139.tar.gz
There is an issue (not seen in our testing) where "yarrow" and
"dummy" switch priorities, and the users are left with no usable /dev/random. The fix assigns priories to these and gives the users what they want. The override tuneable has a stupid name (blame me!) and this fixes it to be something that 'sysctl kern.random' emits and is the right thing to set. Approved by: re (gjb) Approved by: secteam (cperciva)
Diffstat (limited to 'sys/dev/random/randomdev.h')
-rw-r--r--sys/dev/random/randomdev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/random/randomdev.h b/sys/dev/random/randomdev.h
index 5be595f..b87789f 100644
--- a/sys/dev/random/randomdev.h
+++ b/sys/dev/random/randomdev.h
@@ -44,6 +44,7 @@ struct random_adaptor {
struct selinfo rsel;
const char *ident;
int seeded;
+ unsigned priority;
random_init_func_t *init;
random_deinit_func_t *deinit;
random_block_func_t *block;
OpenPOWER on IntegriCloud