- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 570 for rand1 (0.04 sec)
-
pkg/apis/storage/fuzzer/fuzzer.go
obj.ReclaimPolicy = &reclamationPolicies[c.Rand.Intn(len(reclamationPolicies))] bindingModes := []storage.VolumeBindingMode{storage.VolumeBindingImmediate, storage.VolumeBindingWaitForFirstConsumer} obj.VolumeBindingMode = &bindingModes[c.Rand.Intn(len(bindingModes))] }, func(obj *storage.CSIDriver, c fuzz.Continue) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 13:32:38 UTC 2023 - 3.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/example/fuzzer/fuzzer.go
} } else { types := []runtime.Object{&example.Pod{}} t := types[c.Rand.Intn(len(types))] c.Fuzz(t) *j = t } }, func(r *runtime.RawExtension, c fuzz.Continue) { // Pick an arbitrary type and fuzz it types := []runtime.Object{&example.Pod{}} obj := types[c.Rand.Intn(len(types))] c.Fuzz(obj) // Convert the object to raw bytes
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 01 19:31:12 UTC 2018 - 3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/testapigroup/fuzzer/fuzzer.go
} } else { types := []runtime.Object{&testapigroup.Carp{}} t := types[c.Rand.Intn(len(types))] c.Fuzz(t) *j = t } }, func(r *runtime.RawExtension, c fuzz.Continue) { // Pick an arbitrary type and fuzz it types := []runtime.Object{&testapigroup.Carp{}} obj := types[c.Rand.Intn(len(types))] c.Fuzz(obj) // Convert the object to raw bytes
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 01 19:31:12 UTC 2018 - 3.1K bytes - Viewed (0) -
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) -
src/crypto/cipher/fuzz_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build ppc64le package cipher_test import ( "bytes" "crypto/aes" "crypto/cipher" "crypto/rand" "testing" "time" ) var cbcAESFuzzTests = []struct { name string key []byte }{ { "CBC-AES128", commonKey128, }, { "CBC-AES192", commonKey192, }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 03 13:39:12 UTC 2022 - 2K bytes - Viewed (0) -
src/math/rand/export_test.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package rand func Int31nForTest(r *Rand, n int32) int32 { return r.int31n(n) } func GetNormalDistributionParameters() (float64, [128]uint32, [128]float32, [128]float32) { return rn, kn, wn, fn }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 28 16:06:21 UTC 2021 - 482 bytes - Viewed (0) -
src/crypto/ecdsa/ecdsa_legacy.go
) // This file contains a math/big implementation of ECDSA that is only used for // deprecated custom curves. func generateLegacy(c elliptic.Curve, rand io.Reader) (*PrivateKey, error) { k, err := randFieldElement(c, rand) if err != nil { return nil, err } priv := new(PrivateKey) priv.PublicKey.Curve = c priv.D = k priv.PublicKey.X, priv.PublicKey.Y = c.ScalarBaseMult(k.Bytes())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:11:18 UTC 2024 - 4.8K bytes - Viewed (0) -
internal/crypto/key_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package crypto import ( "bytes" "crypto/rand" "encoding/hex" "io" "testing" "github.com/minio/minio/internal/logger" ) var shortRandom = func(limit int64) io.Reader { return io.LimitReader(rand.Reader, limit) } func recoverTest(i int, shouldPass bool, t *testing.T) { if err := recover(); err == nil && !shouldPass {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Feb 02 00:13:57 UTC 2024 - 6.8K bytes - Viewed (0) -
cmd/metacache-stream_test.go
data/huffman-pi.wb.expect-noinput", "src/compress/flate/testdata/huffman-rand-1k.dyn.expect", "src/compress/flate/testdata/huffman-rand-1k.dyn.expect-noinput", "src/compress/flate/testdata/huffman-rand-1k.golden", "src/compress/flate/testdata/huffman-rand-1k.in", "src/compress/flate/testdata/huffman-rand-1k.wb.expect", "src/compress/flate/testdata/huffman-rand-1k.wb.expect-noinput", "src/compress/flate/testdata/huffman-rand-limit.dyn.expect", "src/compress/flate/testdata/huffman-rand-limit.dyn.expect-noinput",...
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 15K bytes - Viewed (0) -
src/crypto/rand/rand_plan9.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Plan9 cryptographically secure pseudorandom number // generator. package rand import ( "crypto/aes" "internal/byteorder" "io" "os" "sync" "time" ) const randomDevice = "/dev/random" func init() { Reader = &reader{} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 1.8K bytes - Viewed (0)