public KeyValue generateKeyValue(long i) {
    byte[] k = generateKey(i);
    byte[] v = generateValue();
    Random rand = ThreadLocalRandom.current();
    return new KeyValue(k, 0, rowLen, k, rowLen, cfLen, k, rowLen + cfLen,
      k.length - rowLen - cfLen, rand.nextLong(), generateKeyType(rand), v, 0, v.length);
  }
Runs the tools.
@param args command-line arguments
@return true in case of success
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/CreateRandomStoreFile.java