X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=apps%2Frand.c;h=790e79592c1ea92e91def9d89358d2b2515e826d;hb=2f1dffa88e1b120add4f0b3a794fbca65aa7768d;hp=7214a9d2a80da033cc59edd5cf23e743924c84e1;hpb=7ca1cfbac328e666c2464b5ee00883d8dd479999;p=openssl.git diff --git a/apps/rand.c b/apps/rand.c index 7214a9d2a8..790e79592c 100644 --- a/apps/rand.c +++ b/apps/rand.c @@ -77,9 +77,6 @@ int MAIN(int, char **); int MAIN(int argc, char **argv) { -#ifndef OPENSSL_NO_ENGINE - ENGINE *e = NULL; -#endif int i, r, ret = 1; int badopt; char *outfile = NULL; @@ -178,7 +175,7 @@ int MAIN(int argc, char **argv) } #ifndef OPENSSL_NO_ENGINE - e = setup_engine(bio_err, engine, 0); + setup_engine(bio_err, engine, 0); #endif app_RAND_load_file(NULL, bio_err, (inrand != NULL)); @@ -229,10 +226,11 @@ int MAIN(int argc, char **argv) { for (i = 0; i < chunk; i++) BIO_printf(out, "%02x", buf[i]); - BIO_puts(out, "\n"); } num -= chunk; } + if (hex) + BIO_puts(out, "\n"); (void)BIO_flush(out); app_RAND_write_file(NULL, bio_err);