diff mtest/mtest.c @ 142:d29b64170cf0 libtommath-orig

import of libtommath 0.32
author Matt Johnston <matt@ucc.asn.au>
date Sun, 19 Dec 2004 11:33:56 +0000
parents 86e0b50a9b58
children d8254fc979e9
line wrap: on
line diff
--- a/mtest/mtest.c	Tue Jun 15 14:42:57 2004 +0000
+++ b/mtest/mtest.c	Sun Dec 19 11:33:56 2004 +0000
@@ -58,7 +58,7 @@
    int n, size;
    unsigned char buf[2048];
 
-   size = 1 + ((fgetc(rng)<<8) + fgetc(rng)) % 97;
+   size = 10 + ((fgetc(rng)<<8) + fgetc(rng)) % 97;
    buf[0] = (fgetc(rng)&1)?1:0;
    fread(buf+1, 1, size, rng);
    while (buf[1] == 0) buf[1] = fgetc(rng);
@@ -109,11 +109,12 @@
 
    t1 = clock();
    for (;;) {
+#if 0
       if (clock() - t1 > CLOCKS_PER_SEC) {
          sleep(2);
          t1 = clock();
       }
-
+#endif
        n = fgetc(rng) % 15;
 
    if (n == 0) {