Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for nextLong (0.11 sec)

  1. guava-tests/test/com/google/common/hash/HashingTest.java

                params1[i] = random.nextInt();
                params2[i] = random.nextInt();
              } else if (method.getParameterTypes()[i] == long.class) {
                params1[i] = random.nextLong();
                params2[i] = random.nextLong();
              } else {
                fail("Unable to create a random parameter for " + method.getParameterTypes()[i]);
              }
            }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 09 17:40:09 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java

          tmp += UnsignedLongs.toString(x, 16).length();
          tmp += UnsignedLongs.toString(x, 2).length();
        }
        return tmp;
      }
    
      private static long random() {
        return RANDOM_SOURCE.nextLong();
      }
    
      // A random value that cannot be 0 and that is unsigned-less-than or equal
      // to the given dividend, so that we don't have half of our divisions being
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.3K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java

          tmp += UnsignedLongs.toString(x, 16).length();
          tmp += UnsignedLongs.toString(x, 2).length();
        }
        return tmp;
      }
    
      private static long random() {
        return RANDOM_SOURCE.nextLong();
      }
    
      // A random value that cannot be 0 and that is unsigned-less-than or equal
      // to the given dividend, so that we don't have half of our divisions being
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.3K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/math/LessThanBenchmark.java

        for (int i = 0; i < SAMPLE_SIZE; i++) {
          xInts[i] = random.nextInt(Integer.MAX_VALUE);
          yInts[i] = random.nextInt(Integer.MAX_VALUE);
          xLongs[i] = random.nextLong() & NONNEGATIVE_LONG_MASK;
          yLongs[i] = random.nextLong() & NONNEGATIVE_LONG_MASK;
          constant[i] = random.nextInt();
        }
      }
    
      @Benchmark
      int branchFreeLtIntInlined(int reps) {
        int tmp = 0;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/math/LongMathRoundingBenchmark.java

        for (int i = 0; i < ARRAY_SIZE; i++) {
          positive[i] = randomPositiveBigInteger(Long.SIZE - 2).longValue();
          nonzero[i] = randomNonZeroBigInteger(Long.SIZE - 2).longValue();
          longs[i] = RANDOM_SOURCE.nextLong();
        }
      }
    
      @Benchmark
      int log2(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          tmp += LongMath.log2(positive[j], mode);
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/es/config/exbhv/ScheduledJobBhv.java

                    if (logger.isDebugEnabled()) {
                        logger.debug("Failed to select a job by {}", id, e);
                    }
                    lastException = e;
                    ThreadUtil.sleep(RandomUtils.nextLong(500, 5000));
                }
            }
            logger.warn("Failed to select a job by {}", id, lastException);
            return OptionalEntity.empty();
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/math/LongMathBenchmark.java

          exponents[i] = randomExponent();
          positive[i] = randomPositiveBigInteger(Long.SIZE - 1).longValue();
          nonnegative[i] = randomNonNegativeBigInteger(Long.SIZE - 1).longValue();
          longs[i] = RANDOM_SOURCE.nextLong();
          factorialArguments[i] = RANDOM_SOURCE.nextInt(30);
          binomialArguments[i][1] = RANDOM_SOURCE.nextInt(MathBenchmarking.biggestBinomials.length);
          int k = binomialArguments[i][1];
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.5K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/math/LongMathBenchmark.java

          exponents[i] = randomExponent();
          positive[i] = randomPositiveBigInteger(Long.SIZE - 1).longValue();
          nonnegative[i] = randomNonNegativeBigInteger(Long.SIZE - 1).longValue();
          longs[i] = RANDOM_SOURCE.nextLong();
          factorialArguments[i] = RANDOM_SOURCE.nextInt(30);
          binomialArguments[i][1] = RANDOM_SOURCE.nextInt(MathBenchmarking.biggestBinomials.length);
          int k = binomialArguments[i][1];
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/tests/BaseCIFSTest.java

            if ( f != null ) {
                f.delete();
            }
        }
    
    
        protected String makeRandomName () {
            return "jcifs-test-" + Math.abs(this.rand.nextLong());
        }
    
    
        protected String makeRandomDirectoryName () {
            return makeRandomName() + "/";
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 8.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

      }
    
      public void testIteratorTesterLarger() throws Exception {
        runIterator(Lists.newArrayList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), 5);
      }
    
      public void testRemoveAt() {
        long seed = new Random().nextLong();
        Random random = new Random(seed);
        int heapSize = 999;
        int numberOfModifications = reduceIterationsIfGwt(500);
        MinMaxPriorityQueue<Integer> mmHeap =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
Back to top