You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 25, 2019. It is now read-only.
@Test
void generate() {
final SecureRandom random = new SecureRandom(); // <- random
final byte[] p = GF256.generate(random, 5, (byte) 20);
// removed for brevity
assertThat(p[p.length - 1]).isNotZero();
}
Will find it hard to catch a bug where generate doesn't loop on the random source until p[p.length - 1] != (byte) 0. If a regression is introduced it is unlikely to be caught before the code is released.
The text was updated successfully, but these errors were encountered:
simbo1905
added a commit
to simbo1905/shamir
that referenced
this issue
Jun 15, 2019
The following test:
Will find it hard to catch a bug where
generate
doesn't loop on the random source untilp[p.length - 1] != (byte) 0
. If a regression is introduced it is unlikely to be caught before the code is released.The text was updated successfully, but these errors were encountered: