Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 829 for randPod (0.84 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/rand/rand.go

    	// No. of random letters we can extract from a single int63.
    	maxAlphanumsPerInt = 63 / alphanumsIdxBits
    )
    
    // String generates a random alphanumeric string, without vowels, which is n
    // characters long.  This will panic if n is less than zero.
    // How the random string is created:
    // - we generate random int63's
    // - from each int63, we are extracting multiple random letters by bit-shifting and masking
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 11 11:02:01 UTC 2018
    - 3.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/httpstream/wsstream/stream_test.go

    }
    
    func TestStreamPing(t *testing.T) {
    	input := "some random text"
    	r := NewReader(bytes.NewBuffer([]byte(input)), true, NewDefaultReaderProtocols())
    	r.SetIdleTimeout(time.Second)
    	err := expectWebSocketFrames(r, t, nil, [][]byte{
    		{},
    		[]byte(input),
    	})
    	if err != nil {
    		t.Fatal(err)
    	}
    }
    
    func TestStreamBase64(t *testing.T) {
    	input := "some random text"
    	encoded := base64.StdEncoding.EncodeToString([]byte(input))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 15:48:39 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. internal/crypto/doc.go

    // initialization vector (IV) and the bucket/object path.
    //
    //  1. Encrypt:
    //     Input: ClientKey, bucket, object, metadata, object_data
    //     -              IV := Random({0,1}²⁵⁶)
    //     -       ObjectKey := SHA256(ClientKey || Random({0,1}²⁵⁶))
    //     -       KeyEncKey := HMAC-SHA256(ClientKey, IV || 'SSE-C' || 'DAREv2-HMAC-SHA256' || bucket || '/' || object)
    //     -       SealedKey := DAREv2_Enc(KeyEncKey, ObjectKey)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Aug 26 19:52:29 UTC 2022
    - 5K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top