Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 660 for randPod (0.47 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/proxy/streamtranslator_test.go

    		t.Errorf("unexpected error creating websocket executor: %v", err)
    	}
    	// Generate random data, and set it up to stream on STDIN. The data will be
    	// returned on the STDOUT buffer.
    	randomSize := 1024 * 1024
    	randomData := make([]byte, randomSize)
    	if _, err := rand.Read(randomData); err != nil {
    		t.Errorf("unexpected error reading random data: %v", err)
    	}
    	var stdout bytes.Buffer
    	options := &remotecommand.StreamOptions{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 27 23:21:55 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  2. platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/AbstractTaskOutputPackagingBenchmark.java

            Random random = new Random(1234L);
            ImmutableList.Builder<DataSource> inputs = ImmutableList.builder();
            for (int idx = 0; idx < fileCount; idx++) {
                String name = "input-" + idx + ".bin";
                int fileSize = minFileSize + random.nextInt(maxFileSize - minFileSize);
                byte[] buffer = new byte[fileSize];
                random.nextBytes(buffer);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  3. src/internal/chacha8rand/chacha8.go

    // block is the chacha8rand block function.
    func block(seed *[4]uint64, blocks *[32]uint64, counter uint32)
    
    // A State holds the state for a single random generator.
    // It must be used from one goroutine at a time.
    // If used by multiple goroutines at a time, the goroutines
    // may see the same random values, but the code will not
    // crash or cause out-of-bounds memory accesses.
    type State struct {
    	buf  [32]uint64
    	seed [4]uint64
    	i    uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:47:29 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/excludes/factories/ExcludeTestSupport.groovy

        IvyArtifactName artifact(String name) {
            new DefaultIvyArtifactName(name, "jar", "jar")
        }
    
        private static class RandomizedIteratorHashSet<T> extends HashSet<T> {
            private final Random random = new Random()
    
            static <T> RandomizedIteratorHashSet<T> of(Set<T> other) {
                return new RandomizedIteratorHashSet<T>(other)
            }
    
            RandomizedIteratorHashSet(Set<T> other) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  5. internal/auth/credentials.go

    // the given io.Reader. If random is nil, crypto/rand.Reader is used.
    // If length <= 0, the access key length is chosen automatically.
    //
    // GenerateAccessKey returns an error if length is too small for a valid
    // access key.
    func GenerateAccessKey(length int, random io.Reader) (string, error) {
    	if random == nil {
    		random = rand.Reader
    	}
    	if length <= 0 {
    		length = accessKeyMaxLen
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 28 17:14:16 UTC 2024
    - 12K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/names/generate.go

    	// the base. If base is valid, the returned name must also be valid. The generator is
    	// responsible for knowing the maximum valid name length.
    	GenerateName(base string) string
    }
    
    // simpleNameGenerator generates random names.
    type simpleNameGenerator struct{}
    
    // SimpleNameGenerator is a generator that returns the name plus a random suffix of five alphanumerics
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 14 07:03:14 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  7. src/crypto/rand/rand_plan9.go

    package rand
    
    import (
    	"crypto/aes"
    	"internal/byteorder"
    	"io"
    	"os"
    	"sync"
    	"time"
    )
    
    const randomDevice = "/dev/random"
    
    func init() {
    	Reader = &reader{}
    }
    
    // reader is a new pseudorandom generator that seeds itself by
    // reading from /dev/random. The Read method on the returned
    // reader always returns the full amount asked for, or else it
    // returns an error. The generator is a fast key erasure RNG.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

      }
    
      private static final Random RANDOM = new Random(42);
    
      public void testLength() {
        assertThat(ImmutableLongArray.of().length()).isEqualTo(0);
        assertThat(ImmutableLongArray.of(0).length()).isEqualTo(1);
        assertThat(ImmutableLongArray.of(0, 1, 3).length()).isEqualTo(3);
        assertThat(ImmutableLongArray.of(0, 1, 3).subArray(1, 1).length()).isEqualTo(0);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 19K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

      }
    
      private static final Random RANDOM = new Random(42);
    
      public void testLength() {
        assertThat(ImmutableDoubleArray.of().length()).isEqualTo(0);
        assertThat(ImmutableDoubleArray.of(0).length()).isEqualTo(1);
        assertThat(ImmutableDoubleArray.of(0, 1, 3).length()).isEqualTo(3);
        assertThat(ImmutableDoubleArray.of(0, 1, 3).subArray(1, 1).length()).isEqualTo(0);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 06 15:23:21 UTC 2023
    - 20K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

      }
    
      private static final Random RANDOM = new Random(42);
    
      public void testLength() {
        assertThat(ImmutableLongArray.of().length()).isEqualTo(0);
        assertThat(ImmutableLongArray.of(0).length()).isEqualTo(1);
        assertThat(ImmutableLongArray.of(0, 1, 3).length()).isEqualTo(3);
        assertThat(ImmutableLongArray.of(0, 1, 3).subArray(1, 1).length()).isEqualTo(0);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 20.2K bytes
    - Viewed (0)
Back to top