Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 264 for randPod (0.22 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/writers_test.go

    func randIP(s *string, r *rand.Rand) {
    	*s = fmt.Sprintf("10.20.%d.%d", r.Int31n(256), r.Int31n(256))
    }
    
    // randPod changes fields in pod to mimic another pod from the same replicaset.
    // The list fields here has been generated by picking two pods in the same replicaset
    // and checking diff of their jsons.
    func randPod(b *testing.B, pod *v1.Pod, r *rand.Rand) {
    	pod.Name = fmt.Sprintf("%s-%x", pod.GenerateName, r.Int63n(1000))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  2. src/math/rand/v2/rand.go

    type Source interface {
    	Uint64() uint64
    }
    
    // A Rand is a source of random numbers.
    type Rand struct {
    	src Source
    }
    
    // New returns a new Rand that uses random values from src
    // to generate other random values.
    func New(src Source) *Rand {
    	return &Rand{src: src}
    }
    
    // Int64 returns a non-negative pseudo-random 63-bit integer as an int64.
    func (r *Rand) Int64() int64 { return int64(r.src.Uint64() &^ (1 << 63)) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:25:49 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  3. src/math/rand/rand.go

    	}
    
    	r.src.Seed(seed)
    	r.readPos = 0
    }
    
    // Int63 returns a non-negative pseudo-random 63-bit integer as an int64.
    func (r *Rand) Int63() int64 { return r.src.Int63() }
    
    // Uint32 returns a pseudo-random 32-bit value as a uint32.
    func (r *Rand) Uint32() uint32 { return uint32(r.Int63() >> 31) }
    
    // Uint64 returns a pseudo-random 64-bit value as a uint64.
    func (r *Rand) Uint64() uint64 {
    	if r.s64 != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:09:08 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  4. src/crypto/rsa/pkcs1v15.go

    	return valid, em, index, nil
    }
    
    // nonZeroRandomBytes fills the given slice with non-zero random octets.
    func nonZeroRandomBytes(s []byte, random io.Reader) (err error) {
    	_, err = io.ReadFull(random, s)
    	if err != nil {
    		return
    	}
    
    	for i := 0; i < len(s); i++ {
    		for s[i] == 0 {
    			_, err = io.ReadFull(random, s[i:i+1])
    			if err != nil {
    				return
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:21 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/util/managedfields/node.yaml

      - devicePath: /dev/disk/by-id/some-random-clusterb9772-pvc-c2435a06-14d7-11e7-9baf-42010a800049
        name: kubernetes.io/pd/some-random-clusterb9772-pvc-c2435a06-14d7-11e7-9baf-42010a800049
      - devicePath: /dev/disk/by-id/some-random-clusterb9772-pvc-8bf50554-fd42-11e6-94d4-42010a800049
        name: kubernetes.io/pd/some-random-clusterb9772-pvc-8bf50554-fd42-11e6-94d4-42010a800049
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 20:22:50 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/fieldmanager/node.yaml

      - devicePath: /dev/disk/by-id/some-random-clusterb9772-pvc-c2435a06-14d7-11e7-9baf-42010a800049
        name: kubernetes.io/pd/some-random-clusterb9772-pvc-c2435a06-14d7-11e7-9baf-42010a800049
      - devicePath: /dev/disk/by-id/some-random-clusterb9772-pvc-8bf50554-fd42-11e6-94d4-42010a800049
        name: kubernetes.io/pd/some-random-clusterb9772-pvc-8bf50554-fd42-11e6-94d4-42010a800049
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 20:22:50 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/python/representative_dataset_test.py

            }
            for sample in samples
        ]
    
        # Extend the representative dataset with np.ndarrays.
        repr_ds.extend([
            {'tensor_key': np.random.uniform(low=-1.0, high=1.0, size=(3, 3))}
            for _ in range(4)
        ])
    
        random.shuffle(repr_ds)
    
        with self.session() as sess:
          new_repr_ds = repr_dataset.replace_tensors_by_numpy_ndarrays(
              repr_ds, sess
          )
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 04 07:35:19 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  8. 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)
  9. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

    import java.util.Map;
    import java.util.Random;
    import java.util.Set;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link AtomicLongMap}.
     *
     * @author mike nonemacher
     */
    @GwtCompatible(emulated = true)
    public class AtomicLongMapTest extends TestCase {
      private static final int ITERATIONS = 100;
      private static final int MAX_ADDEND = 100;
    
      private final Random random = new Random(301);
    
      @J2ktIncompatible
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

    import java.util.Map;
    import java.util.Random;
    import java.util.Set;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link AtomicLongMap}.
     *
     * @author mike nonemacher
     */
    @GwtCompatible(emulated = true)
    public class AtomicLongMapTest extends TestCase {
      private static final int ITERATIONS = 100;
      private static final int MAX_ADDEND = 100;
    
      private final Random random = new Random(301);
    
      @J2ktIncompatible
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top