Class RandomBytes
java.lang.Object
com.carrotsearch.randomizedtesting.generators.RandomBytes
Random byte sequence generators.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
randomBytesOfLength
(Random r, int length) static byte[]
randomBytesOfLengthBetween
(Random r, int minLength, int maxLength)
-
Constructor Details
-
RandomBytes
public RandomBytes()
-
-
Method Details
-
randomBytesOfLength
- Parameters:
r
- Random generator.length
- The length of the byte array. Can be zero.- Returns:
- Returns a byte array with random content.
-
randomBytesOfLengthBetween
- Parameters:
r
- Random generator.minLength
- The minimum length of the byte array. Can be zero.maxLength
- The maximum length of the byte array. Can be zero.- Returns:
- Returns a byte array with random content.
-