use deterministic passphrase in PgpKeyOperationTest

This commit is contained in:
Vincent Breitmoser 2017-11-22 14:19:38 +01:00
parent 833ff57e51
commit bf173b1e65
2 changed files with 1 additions and 5 deletions

View file

@ -87,7 +87,7 @@ import static org.sufficientlysecure.keychain.service.SaveKeyringParcel.buildCha
public class PgpKeyOperationTest {
static UncachedKeyRing staticRing;
final static Passphrase passphrase = TestingUtils.genPassphrase();
final static Passphrase passphrase = new Passphrase("passphrase");
UncachedKeyRing ring;
PgpKeyOperation op;

View file

@ -23,10 +23,6 @@ import junit.framework.Assert;
public class TestingUtils {
public static Passphrase genPassphrase() {
return genPassphrase(false);
}
public static Passphrase genPassphrase(boolean noEmpty) {
String chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789!@#$%^&*()-_=";
Random r = new Random();