test_class.declarator: generator = new Xorshift()
test_class.modifier: private final
test_class.original_string: private final Xorshift generator = new Xorshift();
test_class.type: Xorshift
test_class.var_name: generator
test_class.file: tool/hash/src/test/java/org/openscience/cdk/hash/XorshiftTest.java
test_class.identifier: XorshiftTest
test_case.body: @Test
      public void testDistribution() throws Exception {
  
          int[] values = new int[10];
  
          long x = System.nanoTime();
  
          // fill the buckets (0..10)
          for (int i = 0; i < 1000000; i++) {
              // mask the sign bit and take the modulus, standard hash table
              values[(int) ((0x7FFFFFFFFFFFL & (x = generator.next(x))) % 10)]++;
          }
  
          for (int v : values) {
              assertTrue(v + " was not within 0.1 % of a uniform distribution", 99000 <= v && v <= 101000);
          }
      }
test_case.class_method_signature: XorshiftTest.testDistribution()
test_case.full_signature: @Test public void testDistribution()
test_case.identifier: testDistribution
test_case.invocations: nanoTime next assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDistribution()
focal_class.file: tool/hash/src/main/java/org/openscience/cdk/hash/Xorshift.java
focal_class.identifier: Xorshift
focal_class.class_method_signature: Xorshift.next(long seed)
focal_class.full_signature: @Override long next(long seed)
focal_class.identifier: next
focal_class.modifiers: @Override
focal_class.parameters: (long seed)
focal_class.return: long
focal_class.signature: long next(long seed)
focal_class.superclass: extends Pseudorandom
focal_method.body: @Override
      long next(long seed) {
          seed = seed ^ seed << 21;
          seed = seed ^ seed >>> 35;
          return seed ^ seed << 4;
      }
focal_method.class_method_signature: Xorshift.next(long seed)
focal_method.full_signature: @Override long next(long seed)
focal_method.identifier: next
focal_method.modifiers: @Override
focal_method.parameters: (long seed)
focal_method.return: long
focal_method.signature: long next(long seed)