diff options
| author | Brian Feldman <green@FreeBSD.org> | 2000-07-11 06:47:38 +0000 |
|---|---|---|
| committer | Brian Feldman <green@FreeBSD.org> | 2000-07-11 06:47:38 +0000 |
| commit | 87a478de7b8d22148b160f0ac17ae48942d6d890 (patch) | |
| tree | a8facb5daa1da735ff005b9435444e06321a5459 /sys/dev/randomdev | |
| parent | 11128de9739990e6d4b199d3b09e958aa68ba4c7 (diff) | |
Notes
Diffstat (limited to 'sys/dev/randomdev')
| -rw-r--r-- | sys/dev/randomdev/yarrow.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/randomdev/yarrow.c b/sys/dev/randomdev/yarrow.c index 2ad981bbd7d6..75bcf6c44159 100644 --- a/sys/dev/randomdev/yarrow.c +++ b/sys/dev/randomdev/yarrow.c @@ -101,9 +101,13 @@ random_deinit(void) static void reseed(int fastslow) { - unsigned char v[TIMEBIN][KEYSIZE]; /* v[i] */ + /* + * Allocate the huge variables statically. They _will_ run you + * out of interrupt-context stack otherwise! + */ + static BF_KEY hashkey; + static unsigned char v[TIMEBIN][KEYSIZE]; /* v[i] */ unsigned char hash[KEYSIZE]; /* h' */ - BF_KEY hashkey; unsigned char ivec[8]; unsigned char temp[KEYSIZE]; struct entropy *bucket; |
