diff options
author | flipk <flipk@cvs.openbsd.org> | 1997-06-20 20:35:30 +0000 |
---|---|---|
committer | flipk <flipk@cvs.openbsd.org> | 1997-06-20 20:35:30 +0000 |
commit | db2c002aa4938b70a4f8fc0ab5c7247693c1bf6b (patch) | |
tree | 66961320c0959ed844f01a9ca66917bc0241947d /bin/md5 | |
parent | 50904ffa19d5ce60b05a9e10e17e1562303fcca0 (diff) |
boost TEST_BLOCK_LEN and TEST_BLOCK_COUNT a bit. this makes '-t' more
useful on fast boxes.
also fflush(stdout) after printing the first test message so
the user knows its actually doing something
Diffstat (limited to 'bin/md5')
-rw-r--r-- | bin/md5/md5.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/md5/md5.c b/bin/md5/md5.c index 994cbce4df8..4ac4bb77962 100644 --- a/bin/md5/md5.c +++ b/bin/md5/md5.c @@ -1,5 +1,5 @@ /* - * $OpenBSD: md5.c,v 1.3 1996/11/24 02:26:00 niklas Exp $ + * $OpenBSD: md5.c,v 1.4 1997/06/20 20:35:29 flipk Exp $ * * Derived from: */ @@ -30,8 +30,8 @@ /* * Length of test block, number of test blocks. */ -#define TEST_BLOCK_LEN 1000 -#define TEST_BLOCK_COUNT 1000 +#define TEST_BLOCK_LEN 10000 +#define TEST_BLOCK_COUNT 10000 static void MDString PROTO_LIST((char *)); static void MDTimeTrial PROTO_LIST((void)); @@ -107,6 +107,7 @@ MDTimeTrial() printf ("MD5 time trial. Digesting %d %d-byte blocks ...", TEST_BLOCK_LEN, TEST_BLOCK_COUNT); + fflush(stdout); /* Initialize block */ for (i = 0; i < TEST_BLOCK_LEN; i++) |