Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 828 for RANDOM (3.57 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. 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)
  6. 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)
  7. 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)
  8. 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)
  9. android/guava-tests/benchmark/com/google/common/collect/InternersBenchmark.java

        for (int i = 0; i < reps; i++) {
          String unused = interner.intern(Double.toHexString(Math.random()));
        }
        return reps;
      }
    
      @Benchmark
      int strongInterner(int reps) {
        Interner<String> interner = Interners.newStrongInterner();
        for (int i = 0; i < reps; i++) {
          String unused = interner.intern(Double.toHexString(Math.random()));
        }
        return reps;
      }
    
      @Benchmark
      int stringIntern(int reps) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Mar 04 04:06:35 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  10. pilot/pkg/xds/testdata/benchmarks/virtualservice.yaml

    kind: VirtualService
    metadata:
      name: vs-{{$i}}
    spec:
      hosts:
        - random-{{$i}}.host.example
      http:
      - name: "match-route"
        match:
        - uri:
            prefix: "/foo"
        - uri:
            regex: "/bar"
        rewrite:
          uri: "/new-url"
        route:
          - destination:
              host: random-{{$i}}.host.example
    ---
    apiVersion: networking.istio.io/v1alpha3
    kind: ServiceEntry
    metadata:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 01 15:55:05 UTC 2020
    - 1K bytes
    - Viewed (0)
Back to top