# bigint_test.rb
=begin
This file is part of the AVR-Crypto-Lib.
- Copyright (C) 2008, 2009 Daniel Otte (daniel.otte@rub.de)
+ Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
end
putc((v)?('*'):('!'))
$testno += 1
- $linepos = ($linepos+1)%$linewidth
+ $linepos = ($linepos+1) % $linewidth
end
################################################################################
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
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')