private LockableRandomAccessBuffer generateData(Random random, long size,
LockableRandomAccessBufferFactory smallRAFFactory) throws IOException {
LockableRandomAccessBuffer thing = smallRAFFactory.makeRAF(size);
BucketTools.fill(thing, random, 0, size);
return new ReadOnlyRandomAccessBuffer(thing);
}