protected TypedBytesWritable randomKey() throws IOException {
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
TypedBytesOutput out =
new TypedBytesOutput(new DataOutputStream(bytes));
out.writeInt(rand.nextInt(2000000000));
TypedBytesWritable val =
new TypedBytesWritable(bytes.toByteArray());
return val;