diff options
| author | imoseyon <imoseyon@gmail.com> | 2014-12-14 10:36:51 -0800 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-09-10 12:06:52 +0200 |
| commit | e9c9fff8d3d4e053157db364ae4840882ab30eac (patch) | |
| tree | 43be6a1fd3e2e87290c8820c896c468a4b09e7b2 /lib | |
| parent | b245cbd5c6ae4cfa0fea4f61b84efc0d2397df78 (diff) | |
random: sprinkle e/f/prandom in places that deplete entropy often
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/random32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/random32.c b/lib/random32.c index d7a628a61..ae95d5154 100644 --- a/lib/random32.c +++ b/lib/random32.c @@ -220,7 +220,7 @@ static void __prandom_timer(unsigned long dontcare) u32 entropy; unsigned long expires; - get_random_bytes(&entropy, sizeof(entropy)); + erandom_get_random_bytes((char *)&entropy, sizeof(entropy)); prandom_seed(entropy); /* reseed every ~60 seconds, in [40 .. 80) interval with slack */ |
