public static byte[] createRandomBytes(int length){
  byte[] randomBytes=new byte[length];
  rnd.nextBytes(randomBytes);
  return randomBytes;
}

public static byte [ ] createRandomBytes ( int length ) { byte [ ] randomBytes = new byte [ length ] ; rnd . nextBytes ( randomBytes ) ; return randomBytes ; }
creates a byte array with random bytes with the specified length .
