Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for rnd (0.05 sec)

  1. cmd/dynamic-timeouts_test.go

    	}
    }
    
    func testDynamicTimeoutAdjust(t *testing.T, timeout *dynamicTimeout, f func() float64) {
    	const successTimeout = 20 * time.Second
    
    	for range dynamicTimeoutLogSize {
    		rnd := f()
    		duration := max(time.Duration(float64(successTimeout)*rnd), 100*time.Millisecond)
    		if duration >= time.Minute {
    			timeout.LogFailure()
    		} else {
    			timeout.LogSuccess(duration)
    		}
    	}
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java

      void setUp() {
        long seed = 99;
        Random rnd = new Random(seed);
        strings = new String[SAMPLES];
        for (int i = 0; i < SAMPLES; i++) {
          StringBuilder sb = new StringBuilder();
          for (int j = 0; j < charCount; j++) {
            int codePoint;
            // discard illegal surrogate "codepoints"
            do {
              codePoint = rnd.nextInt(maxCodePoint.value);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 5.3K bytes
    - Viewed (0)
Back to top