public final class RandomBytes extends Object
Constructor and Description |
---|
RandomBytes() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
randomBytesOfLength(Random r,
int length) |
static byte[] |
randomBytesOfLengthBetween(Random r,
int minLength,
int maxLength) |
public static byte[] randomBytesOfLength(Random r, int length)
r
- Random generator.length
- The length of the byte array. Can be zero.public static byte[] randomBytesOfLengthBetween(Random r, int minLength, int maxLength)
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.Copyright © 2011–2017 Carrot Search s.c.. All rights reserved.