Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 503 for randPod (1.81 sec)

  1. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

      // zero effect on the behavior of the WebSocket API which is why tests are only written once
      // from the perspective of a single peer.
      private val random = Random(0)
      private val client2Server = Pipe(8192L)
      private val server2client = Pipe(8192L)
      private val taskFaker = TaskFaker()
      private val client = TestStreams(true, taskFaker, server2client, client2Server)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 01:59:58 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  2. internal/kms/secret-key.go

    	}
    	associatedData, err := req.AssociatedData.MarshalText()
    	if err != nil {
    		return DEK{}, err
    	}
    
    	const randSize = 28
    	random, err := sioutil.Random(randSize)
    	if err != nil {
    		return DEK{}, err
    	}
    	iv, nonce := random[:16], random[16:]
    
    	prf := hmac.New(sha256.New, s.key)
    	prf.Write(iv)
    	key := prf.Sum(make([]byte, 0, prf.Size()))
    
    	block, err := aes.NewCipher(key)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  3. src/internal/fuzz/mutator.go

    	var max int64
    	for {
    		max = 100
    		switch m.rand(2) {
    		case 0:
    			// Add a random number
    			if v >= maxValue {
    				continue
    			}
    			if v > 0 && maxValue-v < max {
    				// Don't let v exceed maxValue
    				max = maxValue - v
    			}
    			v += int64(1 + m.rand(int(max)))
    			return v
    		case 1:
    			// Subtract a random number
    			if v <= -maxValue {
    				continue
    			}
    			if v < 0 && maxValue+v < max {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 20:01:34 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/stubtest_linux_ppc64le.S

    //   notoc_func          [called TOC -> NOTOC (but R2 is preserved)]
    //     toc_func          [called NOTOC -> TOC]
    //       notoc_nor2_func [called TOC -> NOTOC]
    //       random          [dynamic TOC call]
    //     random		 [dynamic NOTOC call]
    //
    // Depending on the GOPPC64/buildmode used, and type of call, one of 7 stubs may need inserted:
    //
    // TOC   -> NOTOC:     Save R2, call global entry. (valid for any GOPPC64)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 15:06:17 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  5. cluster/addons/node-problem-detector/OWNERS

    # See the OWNERS docs at https://go.k8s.io/owners
    
    approvers:
      - Random-Liu
      - wangzhen127
    reviewers:
      - Random-Liu
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 16:03:08 UTC 2024
    - 135 bytes
    - Viewed (0)
  6. src/internal/fuzz/pcg.go

    func (r *pcgRand) restore(randState, randInc uint64) {
    	r.state = randState
    	r.inc = randInc
    }
    
    // uint32 returns a pseudo-random uint32.
    func (r *pcgRand) uint32() uint32 {
    	x := r.state
    	r.step()
    	return bits.RotateLeft32(uint32(((x>>18)^x)>>27), -int(x>>59))
    }
    
    // intn returns a pseudo-random number in [0, n).
    // n must fit in a uint32.
    func (r *pcgRand) intn(n int) int {
    	if int(uint32(n)) != n {
    		panic("large Intn")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:28:14 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/ByteSourceTester.java

        if (slice && bytes.length > 0) {
          // test a random slice() of the ByteSource
          Random random = new Random();
          byte[] expected = factory.getExpected(bytes);
          // if expected.length == 0, off has to be 0 but length doesn't matter--result will be empty
          int off = expected.length == 0 ? 0 : random.nextInt(expected.length);
          int len = expected.length == 0 ? 4 : random.nextInt(expected.length - off);
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  8. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/AbstractTestDirectoryProvider.java

     */
    public abstract class AbstractTestDirectoryProvider implements TestRule, TestDirectoryProvider {
        protected final TestFile root;
        private final String className;
    
        private static final Random RANDOM = new Random();
        private static final int ALL_DIGITS_AND_LETTERS_RADIX = 36;
        private static final int MAX_RANDOM_PART_VALUE = Integer.parseInt("zzzzz", ALL_DIGITS_AND_LETTERS_RADIX);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. platforms/core-runtime/time/src/main/java/org/gradle/internal/time/ExponentialBackoff.java

     */
    package org.gradle.internal.time;
    
    import java.io.IOException;
    import java.util.Random;
    import java.util.concurrent.TimeUnit;
    
    public class ExponentialBackoff<S extends ExponentialBackoff.Signal> {
    
        private static final int CAP_FACTOR = 100;
        private static final long SLOT_TIME = 25;
    
        private final Random random = new Random();
        private final S signal;
    
        private final long slotTime;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:49:35 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  10. src/io/ioutil/tempfile.go

    // TempFile creates a new temporary file in the directory dir,
    // opens the file for reading and writing, and returns the resulting *[os.File].
    // The filename is generated by taking pattern and adding a random
    // string to the end. If pattern includes a "*", the random string
    // replaces the last "*".
    // If dir is the empty string, TempFile uses the default directory
    // for temporary files (see [os.TempDir]).
    // Multiple programs calling TempFile simultaneously
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:34:35 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top