Archistar / archistar-smc

Secret sharing library in Java for the Archistar multi-cloud storage system
http://archistar.at
GNU Lesser General Public License v2.1
45 stars 18 forks source link

Fixing random genRandomTest method in TestBerlekampWelchDecode #14

Closed gye-tgm closed 10 years ago

gye-tgm commented 10 years ago

...y points can be less than wanted. Fixed this by generating random and distinct integers with a helper method.

Note: code line 47 is a little bit faulty, since there exists no fair distribution (i.e. throwing a 256-sided dice and doing modulo isn't well distributed) . We can do better, but IMO it shouldn't be a problem in this test.