Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 281 for seed2 (0.07 sec)

  1. src/math/rand/v2/example_test.go

    // This example shows the use of each of the methods on a *Rand.
    // The use of the global functions is the same, without the receiver.
    func Example_rand() {
    	// Create and seed the generator.
    	// Typically a non-fixed seed should be used, such as Uint64(), Uint64().
    	// Using a fixed seed will produce the same output on every run.
    	r := rand.New(rand.NewPCG(1, 2))
    
    	// The tabwriter here helps us generate aligned output.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 30 17:09:26 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  2. src/math/rand/example_test.go

    // This example shows the use of each of the methods on a *Rand.
    // The use of the global functions is the same, without the receiver.
    func Example_rand() {
    	// Create and seed the generator.
    	// Typically a non-fixed seed should be used, such as time.Now().UnixNano().
    	// Using a fixed seed will produce the same output on every run.
    	r := rand.New(rand.NewSource(99))
    
    	// The tabwriter here helps us generate aligned output.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 16:24:57 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  3. src/testing/fuzz.go

    			panic(fmt.Sprintf("testing: unsupported type for fuzzing %v", t))
    		}
    		types = append(types, t)
    	}
    
    	// Load the testdata seed corpus. Check types of entries in the testdata
    	// corpus and entries declared with F.Add.
    	//
    	// Don't load the seed corpus if this is a worker process; we won't use it.
    	if f.fuzzContext.mode != fuzzWorker {
    		for _, c := range f.corpus {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_test.go

    func TestUnstructuredMetadataRoundTrip(t *testing.T) {
    	scheme := runtime.NewScheme()
    	codecs := serializer.NewCodecFactory(scheme)
    	seed := rand.Int63()
    	fuzzer := fuzzer.FuzzerFor(metafuzzer.Funcs, rand.NewSource(seed), codecs)
    
    	N := 1000
    	for i := 0; i < N; i++ {
    		u := &unstructured.Unstructured{Object: map[string]interface{}{}}
    		uCopy := u.DeepCopy()
    		metadata := &metav1.ObjectMeta{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 5K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/plugin/DefaultBuildPluginManager.java

            MavenSession oldSession = legacySupport.getSession();
    
            scope.enter();
    
            try {
                scope.seed(MavenProject.class, project);
                scope.seed(MojoExecution.class, mojoExecution);
                scope.seed(
                        org.apache.maven.api.plugin.Log.class,
                        new DefaultLog(LoggerFactory.getLogger(
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Mar 25 10:50:01 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. pkg/api/testing/unstructured_test.go

    		},
    	}
    
    	seed := int64(time.Now().Nanosecond())
    	if override := os.Getenv("TEST_RAND_SEED"); len(override) > 0 {
    		overrideSeed, err := strconv.ParseInt(override, 10, 64)
    		if err != nil {
    			t.Fatal(err)
    		}
    		seed = overrideSeed
    		t.Logf("using overridden seed: %d", seed)
    	} else {
    		t.Logf("seed (override with TEST_RAND_SEED if desired): %d", seed)
    	}
    
    	var buf bytes.Buffer
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  7. pkg/kubelet/stats/cri_stats_provider_test.go

    		}
    		containerStats.Memory = &runtimeapi.MemoryUsage{
    			Timestamp:       timestamp.UnixNano(),
    			WorkingSetBytes: &runtimeapi.UInt64Value{Value: uint64(seed + offsetCRI + offsetMemWorkingSetBytes)},
    		}
    	}
    	return containerStats
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  8. src/runtime/hash_test.go

    	}
    	var b [4]byte
    	r := rand.New(rand.NewSource(1234))
    	seed := uintptr(r.Uint64())
    	for i := 0; i < 100; i++ {
    		randBytes(r, b[:])
    		got := MemHash32(unsafe.Pointer(&b), seed)
    		want := MemHash(unsafe.Pointer(&b), seed, 4)
    		if got != want {
    			t.Errorf("MemHash32(%x, %v) = %v; want %v", b, seed, got, want)
    		}
    	}
    }
    
    func TestMemHash64Equality(t *testing.T) {
    	if *UseAeshash {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 17:50:18 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  9. src/runtime/asm_386.s

    	MOVL	h+4(FP), X0	            // 32 bits of per-table hash seed
    	PINSRW	$4, BX, X0	            // 16 bits of length
    	PSHUFHW	$0, X0, X0	            // replace size with its low 2 bytes repeated 4 times
    	MOVO	X0, X1                      // save unscrambled seed
    	PXOR	runtime·aeskeysched(SB), X0 // xor in per-process seed
    	AESENC	X0, X0                      // scramble seed
    
    	CMPL	BX, $16
    	JB	aes0to15
    	JE	aes16
    	CMPL	BX, $32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 15:45:13 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsRequestBuilder.java

        }
    
        public PopularWordsRequestBuilder addLanguage(final String lang) {
            request.addLanguage(lang);
            return this;
        }
    
        public PopularWordsRequestBuilder setSeed(final String seed) {
            request.setSeed(seed);
            return this;
        }
    
        public PopularWordsRequestBuilder setWindowSize(final int windowSize) {
            request.setWindowSize(windowSize);
            return this;
        }
    
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top