From 13eef731cf3911e5a60891a236d69ce4802e5326 Mon Sep 17 00:00:00 2001 From: Richard Weinberger Date: Thu, 18 Oct 2018 16:37:15 +0200 Subject: mkfs.ubifs: Move RAND_poll to crypto.c Signed-off-by: Richard Weinberger Signed-off-by: David Oberhollenzer --- ubifs-utils/mkfs.ubifs/crypto.c | 1 + ubifs-utils/mkfs.ubifs/mkfs.ubifs.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ubifs-utils/mkfs.ubifs/crypto.c b/ubifs-utils/mkfs.ubifs/crypto.c index 50a09b5..9c6073e 100644 --- a/ubifs-utils/mkfs.ubifs/crypto.c +++ b/ubifs-utils/mkfs.ubifs/crypto.c @@ -330,6 +330,7 @@ static struct cipher ciphers[] = { int crypto_init(void) { ERR_load_crypto_strings(); + RAND_poll(); return 0; } diff --git a/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c b/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c index f8d8e52..e4204da 100644 --- a/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c +++ b/ubifs-utils/mkfs.ubifs/mkfs.ubifs.c @@ -2841,8 +2841,6 @@ int main(int argc, char *argv[]) if (crypto_init()) return -1; - RAND_poll(); - err = get_options(argc, argv); if (err) return err; -- cgit v1.2.3