@Test
  public void testRandomMultiplyDivideInverse() {
    final int N = 100000;
    final long MASK56 = 0x00FFFFFFFFFFFFL; // 56 bit mask to generate positive 56 bit longs
                                           // from random signed longs
    int seed = 897089790;
    Random rand = new Random(seed);
    long l1, l2;
    for (int i = 1; i <= N; i++) {
      l1 = rand.nextLong() & MASK56;
      l2 = rand.nextLong() & MASK56;
      verifyMultiplyDivideInverse(l1, l2);
    }
  }
This code was based on code from Microsoft's PolyBase.
common/src/test/org/apache/hadoop/hive/common/type/TestDecimal128.java