@Test public void testGenerateRandomBytes() { assertThat(Wallet.generateRandomBytes(0), is(new byte[]{})); assertThat(Wallet.generateRandomBytes(10).length, is(10)); }
static byte[] generateRandomBytes(int size) { byte[] bytes = new byte[size]; secureRandom().nextBytes(bytes); return bytes; }
Wallet { static byte[] generateRandomBytes(int size) { byte[] bytes = new byte[size]; secureRandom().nextBytes(bytes); return bytes; } }
Wallet { static byte[] generateRandomBytes(int size) { byte[] bytes = new byte[size]; secureRandom().nextBytes(bytes); return bytes; }  }
Wallet { static byte[] generateRandomBytes(int size) { byte[] bytes = new byte[size]; secureRandom().nextBytes(bytes); return bytes; }  static WalletFile create(String password, ECKeyPair ecKeyPair, int n, int p); static WalletFile createStandard(String password, ECKeyPair ecKeyPair); static WalletFile createLight(String password, ECKeyPair ecKeyPair); static ECKeyPair decrypt(String password, WalletFile walletFile); }
Wallet { static byte[] generateRandomBytes(int size) { byte[] bytes = new byte[size]; secureRandom().nextBytes(bytes); return bytes; }  static WalletFile create(String password, ECKeyPair ecKeyPair, int n, int p); static WalletFile createStandard(String password, ECKeyPair ecKeyPair); static WalletFile createLight(String password, ECKeyPair ecKeyPair); static ECKeyPair decrypt(String password, WalletFile walletFile);  }