diff options
author | Richard Weinberger <richard@nod.at> | 2018-10-18 16:37:15 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2018-11-01 12:42:25 +0100 |
commit | 13eef731cf3911e5a60891a236d69ce4802e5326 (patch) | |
tree | a6fed1f4df1b0840a85db596c0fe8be87aa68525 | |
parent | cef0495f7a536256252a559c88266c8d272bfdb1 (diff) |
mkfs.ubifs: Move RAND_poll to crypto.c
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r-- | ubifs-utils/mkfs.ubifs/crypto.c | 1 | ||||
-rw-r--r-- | ubifs-utils/mkfs.ubifs/mkfs.ubifs.c | 2 |
2 files changed, 1 insertions, 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; |