public class RandomByteArrayFactory extends Object implements ByteArrayFactory
Implementation of ByteArrayFactory that generates random byte arrays.
It uses SecureRandom for generation of arrays.
| Constructor and Description |
|---|
RandomByteArrayFactory() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes(int size)
Creates a byte array of given size.
|
public byte[] getBytes(int size)
ByteArrayFactorygetBytes in interface ByteArrayFactorysize - size of desired byte arrayCopyright © 2019. All rights reserved.