test_class.file: netflix-commons-util/src/test/java/com/netflix/util/concurrent/ConcurrentUUIDFactoryTest.java
test_class.identifier: ConcurrentUUIDFactoryTest
test_case.body: @Test
      public void testGenerateRandomUuidNonConstant() throws Exception {
          final int numValues = 1000;
          final Set<UUID> values = new HashSet<>();
          final ConcurrentUUIDFactory factory = new ConcurrentUUIDFactory();
  
          for (int i = 0; i < numValues; ++i) {
              final UUID newUuid = factory.generateRandomUuid();
              Assert.assertTrue("Already generated UUID with value: " + newUuid, values.add(newUuid));
          }
          Assert.assertEquals(numValues, values.size());
      }
test_case.class_method_signature: ConcurrentUUIDFactoryTest.testGenerateRandomUuidNonConstant()
test_case.full_signature: @Test public void testGenerateRandomUuidNonConstant()
test_case.identifier: testGenerateRandomUuidNonConstant
test_case.invocations: generateRandomUuid assertTrue add assertEquals size
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGenerateRandomUuidNonConstant()
focal_class.file: netflix-commons-util/src/main/java/com/netflix/util/concurrent/ConcurrentUUIDFactory.java
focal_class.identifier: ConcurrentUUIDFactory
focal_class.interfaces: implements UUIDFactory
focal_class.class_method_signature: ConcurrentUUIDFactory.generateRandomUuid()
focal_class.full_signature: @Override public UUID generateRandomUuid()
focal_class.identifier: generateRandomUuid
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: UUID
focal_class.signature: UUID generateRandomUuid()
focal_method.body: @Override
      public UUID generateRandomUuid() {
          final Random rnd = ThreadLocalRandom.current();
          long mostSig  = rnd.nextLong();
          long leastSig = rnd.nextLong();
  
          // Identify this as a version 4 UUID, that is one based on a random value.
          mostSig &= 0xffffffffffff0fffL;
          mostSig |= 0x0000000000004000L;
  
          // Set the variant identifier as specified for version 4 UUID values.  The two
          // high order bits of the lower word are required to be one and zero, respectively.
          leastSig &= 0x3fffffffffffffffL;
          leastSig |= 0x8000000000000000L;
  
          return new UUID(mostSig, leastSig);
      }
focal_method.class_method_signature: ConcurrentUUIDFactory.generateRandomUuid()
focal_method.full_signature: @Override public UUID generateRandomUuid()
focal_method.identifier: generateRandomUuid
focal_method.invocations: current nextLong nextLong
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: UUID
focal_method.signature: UUID generateRandomUuid()