mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-27 03:02:15 -05:00
fix small non-deterministic failure case in unit test
This commit is contained in:
parent
1bc14ab6ae
commit
204893a025
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user