mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-08-13 15:53:53 -04: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();
|
parcel.reset();
|
||||||
|
|
||||||
Random r = new Random();
|
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)];
|
byte[] data = new byte[r.nextInt(2000)];
|
||||||
new Random().nextBytes(data);
|
new Random().nextBytes(data);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user