private static int randomNanos(Random rand) {
    return randomNanos(rand, rand.nextInt(10));
  }
Pad the given byte array with the given number of bytes in the beginning. The padding bytes
deterministically depend on the passed data.
serde/src/test/org/apache/hadoop/hive/serde2/io/TestTimestampWritableV2.java