- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 1,994 for rend (0.12 sec)
-
src/runtime/internal/wasitest/nonblock_test.go
// license that can be found in the LICENSE file. // Not all systems have syscall.Mkfifo. //go:build !aix && !plan9 && !solaris && !wasm && !windows package wasi_test import ( "bufio" "fmt" "io" "math/rand" "os" "os/exec" "path/filepath" "syscall" "testing" ) // This test creates a set of FIFOs and writes to them in reverse order. It
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 29 15:35:27 UTC 2023 - 2.4K bytes - Viewed (0) -
src/runtime/internal/wasitest/tcpecho_test.go
// Copyright 2023 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 wasi_test import ( "bytes" "fmt" "math/rand" "net" "os" "os/exec" "testing" "time" ) func TestTCPEcho(t *testing.T) { if target != "wasip1/wasm" { t.Skip() } // We're unable to use port 0 here (let the OS choose a spare port).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 22:01:11 UTC 2024 - 2.4K bytes - Viewed (0) -
src/os/readfrom_linux_test.go
t.Fatal(err) } t.Cleanup(func() { dst.Close() }) // Populate the source file with data, then rewind it, so it can be // consumed by copy_file_range(2). prng := rand.New(rand.NewSource(time.Now().Unix())) data = make([]byte, size) prng.Read(data) if _, err := src.Write(data); err != nil { t.Fatal(err) } if _, err := src.Seek(0, io.SeekStart); err != nil { t.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:49:26 UTC 2024 - 20.3K bytes - Viewed (0) -
src/net/tcpsock_unix_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !plan9 && !windows package net import ( "context" "math/rand" "runtime" "sync" "syscall" "testing" "time" ) // See golang.org/issue/14548. func TestTCPSpuriousConnSetupCompletion(t *testing.T) { if testing.Short() { t.Skip("skipping in short mode")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 2.3K bytes - Viewed (0) -
cmd/kubeadm/app/util/crypto/crypto.go
*/ package crypto import ( "crypto/aes" "crypto/cipher" "crypto/rand" "github.com/pkg/errors" ) // CreateRandBytes returns a cryptographically secure slice of random bytes with a given size func CreateRandBytes(size uint32) ([]byte, error) { bytes := make([]byte, size) if _, err := rand.Read(bytes); err != nil { return nil, err } return bytes, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jul 04 08:41:27 UTC 2021 - 2.1K bytes - Viewed (0) -
pkg/kube/rpc_creds_test.go
import ( "context" "reflect" "testing" "time" v1 "k8s.io/api/authentication/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/util/rand" "k8s.io/client-go/kubernetes/fake" clienttesting "k8s.io/client-go/testing" "istio.io/istio/pkg/test/util/retry" ) func Test_tokenSupplier_GetRequestMetadata(t *testing.T) { ctx := context.Background()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 16 06:24:33 UTC 2022 - 2.4K bytes - Viewed (0) -
cmd/erasure-metadata-utils_test.go
func Test_hashOrder(t *testing.T) { for x := 1; x < 17; x++ { t.Run(fmt.Sprintf("%d", x), func(t *testing.T) { var first [17]int rng := rand.New(rand.NewSource(0)) var tmp [16]byte rng.Read(tmp[:]) prefix := hex.EncodeToString(tmp[:]) for i := 0; i < 10000; i++ { rng.Read(tmp[:]) y := hashOrder(fmt.Sprintf("%s/%x", prefix, hex.EncodeToString(tmp[:3])), x) first[y[0]]++ }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 7.4K bytes - Viewed (0) -
src/crypto/ecdh/ecdh.go
) type Curve interface { // GenerateKey generates a random PrivateKey. // // Most applications should use [crypto/rand.Reader] as rand. Note that the // returned key does not depend deterministically on the bytes read from rand, // and may change between calls and/or between versions. GenerateKey(rand io.Reader) (*PrivateKey, error) // NewPrivateKey checks that key is valid and returns a PrivateKey. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:09:47 UTC 2023 - 6.4K bytes - Viewed (0) -
src/sync/atomic/value_test.go
N := int(1e5) if testing.Short() { p /= 2 N = 1e3 } for _, test := range tests { var v Value done := make(chan bool, p) for i := 0; i < p; i++ { go func() { r := rand.New(rand.NewSource(rand.Int63())) expected := true loop: for j := 0; j < N; j++ { x := test[r.Intn(len(test))] v.Store(x) x = v.Load() for _, x1 := range test { if x == x1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 6.1K bytes - Viewed (0) -
src/crypto/internal/mlkem768/mlkem768.go
} var z [32]byte if _, err := rand.Read(z[:]); err != nil { return nil, errors.New("mlkem768: crypto/rand Read failed: " + err.Error()) } return kemKeyGen(dk, &d, &z), nil } // NewKeyFromSeed deterministically generates a decapsulation key from a 64-byte // seed in the "d || z" form. The seed must be uniformly random. func NewKeyFromSeed(seed []byte) (*DecapsulationKey, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 28.4K bytes - Viewed (0)