fix small non-deterministic failure case in unit test

This commit is contained in:
Vincent Breitmoser 2015-05-31 05:41:18 +02:00
parent 1bc14ab6ae
commit 204893a025

View File

@ -1012,7 +1012,7 @@ public class PgpKeyOperationTest {
parcel.reset();
Random r = new Random();
int type = r.nextInt(110)+1;
int type = r.nextInt(110)+2; // any type except image attribute, to avoid interpretation of these
byte[] data = new byte[r.nextInt(2000)];
new Random().nextBytes(data);