aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorimoseyon <imoseyon@gmail.com>2014-12-14 10:36:51 -0800
committerMister Oyster <oysterized@gmail.com>2017-04-11 10:57:24 +0200
commitec5cbbc97e67e34343508179d56058309baabbf9 (patch)
treebf56d4f75f1c72c3d19a269c2d202161da2ec6e7 /lib
parent452a99a804937ebc55fdc178fc9fae14ccc6b63f (diff)
random: sprinkle e/f/prandom in places that deplete entropy often
Diffstat (limited to 'lib')
-rw-r--r--lib/random32.c2
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 */