private byte[] generateRandomBytes(final String prefix,final Byte[] body,final int length){
  byte[] data=new byte[length];
  for (int i=0; i < length; i++) {
    data[i]=(body != null && i < body.length) ? data[i]=body[i] : (byte)(Math.random() * (122 - 65) + 65);
  }
  if (prefix != null) {
    byte[] prefixBytes=prefix.getBytes();
    for (int i=0; i < prefix.length(); i++) {
      data[i]=prefixBytes[i];
    }
  }
  return data;
}

private byte [ ] generateRandomBytes ( final String prefix , final Byte [ ] body , final int length ) { byte [ ] data = new byte [ length ] ; for ( int i = 0 ; i < length ; i ++ ) { data [ i ] = ( body != null && i < body . length ) ? data [ i ] = body [ i ] : ( byte ) ( Math . random ( ) * ( 122 - 65 ) + 65 ) ; } if ( prefix != null ) { byte [ ] prefixBytes = prefix . getBytes ( ) ; for ( int i = 0 ; i < prefix . length ( ) ; i ++ ) { data [ i ] = prefixBytes [ i ] ; } } return data ; }
generate a sequence of byte starting with the optional supplied prefix and there afterwards values in the 65 - 122 range .
