@Test(expected = IllegalArgumentException.class) public void sizeNegative() { generator.generate(-1); }
public byte[] generate(final int size) { checkArgument(size > 0); byte[] bytes = new byte[size]; random.nextBytes(bytes); return bytes; }
RandomBytesGeneratorImpl extends ComponentSupport implements RandomBytesGenerator { public byte[] generate(final int size) { checkArgument(size > 0); byte[] bytes = new byte[size]; random.nextBytes(bytes); return bytes; } }
RandomBytesGeneratorImpl extends ComponentSupport implements RandomBytesGenerator { public byte[] generate(final int size) { checkArgument(size > 0); byte[] bytes = new byte[size]; random.nextBytes(bytes); return bytes; } @Inject  RandomBytesGeneratorImpl(final CryptoHelper crypto); }
RandomBytesGeneratorImpl extends ComponentSupport implements RandomBytesGenerator { public byte[] generate(final int size) { checkArgument(size > 0); byte[] bytes = new byte[size]; random.nextBytes(bytes); return bytes; } @Inject  RandomBytesGeneratorImpl(final CryptoHelper crypto); byte[] generate(final int size); }
RandomBytesGeneratorImpl extends ComponentSupport implements RandomBytesGenerator { public byte[] generate(final int size) { checkArgument(size > 0); byte[] bytes = new byte[size]; random.nextBytes(bytes); return bytes; } @Inject  RandomBytesGeneratorImpl(final CryptoHelper crypto); byte[] generate(final int size);  }