For -hex, print just one \n
authorBodo Möller <bodo@openssl.org>
Mon, 2 Feb 2009 00:40:59 +0000 (00:40 +0000)
committerBodo Möller <bodo@openssl.org>
Mon, 2 Feb 2009 00:40:59 +0000 (00:40 +0000)
apps/rand.c

index 7214a9d2a80da033cc59edd5cf23e743924c84e1..2243015a75e2a7ff97df0abb4d9e93df30967d3e 100644 (file)
@@ -233,6 +233,8 @@ int MAIN(int argc, char **argv)
                        }
                num -= chunk;
                }
+       if (hex)
+               BIO_puts(out, "\n");
        (void)BIO_flush(out);
 
        app_RAND_write_file(NULL, bio_err);