X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=host%2Fbigint_test.rb;fp=host%2Fbigint_test.rb;h=37bd0ddc6757840367670cd56cb48c7cba5583c1;hp=90c46b39421fef1d8d4bbe0305095fdb0d76b333;hb=d796b12dbb838974705d995369161d3836f9dad2;hpb=b14938245d00969fde184d6c8490ff0d1a7ab7e1 diff --git a/host/bigint_test.rb b/host/bigint_test.rb index 90c46b3..37bd0dd 100644 --- a/host/bigint_test.rb +++ b/host/bigint_test.rb @@ -172,7 +172,7 @@ def screen_progress(v) end putc((v)?('*'):('!')) $testno += 1 - $linepos = ($linepos+1)%$linewidth + $linepos = ($linepos+1) % $linewidth end ################################################################################ @@ -850,7 +850,7 @@ def run_test_expmodmont(skip=0) screen_progress(v) end (0..16).each do |i| - b_size = rand(length_b_B+1) + b_size = rand(length_b_B + 10) a = rand(256 ** length_a_B) b = rand(256 ** b_size) + 1 c = rand(256 ** b_size) / 2 * 2 +1 @@ -988,7 +988,7 @@ if File.exists?(logfilename) n1 = sprintf('%s%04d%s', conf['PORT']['testlogbase']+'bigint_',i-2,'.txt') n2 = sprintf('%s%04d%s', conf['PORT']['testlogbase']+'bigint_',i-1,'.txt') File.rename(n1, n2) - printf("%s -> %s\n", n1, n2) +# printf("%s -> %s\n", n1, n2) i-=1 end n1 = sprintf('%s%s', conf['PORT']['testlogbase'],'bigint.txt')