- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 1,994 for rend (0.04 sec)
-
src/math/rand/v2/race_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package rand_test import ( . "math/rand/v2" "sync" "testing" ) // TestConcurrent exercises the rand API concurrently, triggering situations // where the race detector is likely to detect issues. func TestConcurrent(t *testing.T) { const ( numRoutines = 10 numCycles = 10 )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 30 14:31:46 UTC 2023 - 1005 bytes - Viewed (0) -
src/crypto/rand/rand_batched_test.go
// Copyright 2014 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. //go:build unix package rand import ( "bytes" "errors" prand "math/rand" "testing" ) func TestBatched(t *testing.T) { fillBatched := batched(func(p []byte) error { for i := range p { p[i] = byte(i) } return nil }, 5)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 26 16:24:57 UTC 2022 - 1.8K bytes - Viewed (0) -
pkg/ledger/ledger_test.go
for i := 0; i < configSize; i++ { ids = append(ids, addConfig(l, b)) } b.ResetTimer() for n := 0; n < b.N; n++ { eg.Go(func() error { _, err := l.Put(ids[rand.Int()%configSize], strconv.Itoa(rand.Int())) _ = l.RootHash() return err }) } if err := eg.Wait(); err != nil { b.Fatalf("An error occurred putting new data on the ledger: %v", err) } b.StopTimer() }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jul 12 16:12:59 UTC 2023 - 4K bytes - Viewed (0) -
src/compress/flate/testdata/huffman-rand-1k.wb.expect-noinput
Klaus Post <******@****.***> 1457448890 +0100
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 11 17:40:52 UTC 2016 - 1K bytes - Viewed (0) -
src/compress/flate/testdata/huffman-rand-limit.dyn.expect-noinput
Klaus Post <******@****.***> 1457448890 +0100
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 11 17:40:52 UTC 2016 - 229 bytes - Viewed (0) -
src/compress/flate/testdata/huffman-rand-limit.wb.expect-noinput
Klaus Post <******@****.***> 1457448890 +0100
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 11 17:40:52 UTC 2016 - 186 bytes - Viewed (0) -
src/crypto/cipher/cfb_test.go
block, err := aes.NewCipher(commonKey128) if err != nil { t.Error(err) return } plaintext := []byte("this is the plaintext. this is the plaintext.") iv := make([]byte, block.BlockSize()) rand.Reader.Read(iv) cfb := cipher.NewCFBEncrypter(block, iv) ciphertext := make([]byte, len(plaintext)) copy(ciphertext, plaintext) cfb.XORKeyStream(ciphertext, ciphertext) cfbdec := cipher.NewCFBDecrypter(block, iv)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 22:18:36 UTC 2019 - 2.8K bytes - Viewed (0) -
src/crypto/rsa/pss_test.go
// k otherwise, where k is the length in octets of the RSA modulus n." key, err := GenerateKey(rand.Reader, 513) if err != nil { t.Fatal(err) } digest := sha256.Sum256([]byte("message")) signature, err := key.Sign(rand.Reader, digest[:], &PSSOptions{ SaltLength: PSSSaltLengthAuto, Hash: crypto.SHA256, }) if err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 8.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_fuzz.go
} // Allow for about 1000 years of randomness. Accurate to a tenth of // micro second. Leave off nanoseconds because JSON doesn't // represent them so they can't round-trip properly. t.Time = time.Unix(c.Rand.Int63n(1000*365*24*60*60), 1000*c.Rand.Int63n(1000000)) } // ensure MicroTime implements fuzz.Interface
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 1.1K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/universe.go
// license that can be found in the LICENSE file. package typecheck import ( "go/constant" "cmd/compile/internal/ir" "cmd/compile/internal/types" "cmd/internal/src" ) var ( okfor [ir.OEND][]bool ) var ( okforeq [types.NTYPE]bool okforadd [types.NTYPE]bool okforand [types.NTYPE]bool okfornone [types.NTYPE]bool okforbool [types.NTYPE]bool okforcap [types.NTYPE]bool
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 15:20:28 UTC 2023 - 4.7K bytes - Viewed (0)