Hi,
A piece of code I write far too often is:
======
public static byte[] getRandomBytes(int length) {
// validate length is non-negative
byte[] result = new byte[length];
RANDOM.nextBytes(result);
return result;
}
======
Is there a place for something like this in Commons Lang? Or, better,
does this already exist in another commons project?
Duncan
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]