Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,364 for rend (0.05 sec)

  1. 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)
  2. security/pkg/pki/util/generate_csr.go

    		}
    
    		priv, err = rsa.GenerateKey(rand.Reader, options.RSAKeySize)
    		if err != nil {
    			return nil, nil, fmt.Errorf("RSA key generation failed (%v)", err)
    		}
    	}
    	template, err := GenCSRTemplate(options)
    	if err != nil {
    		return nil, nil, fmt.Errorf("CSR template creation failed (%v)", err)
    	}
    
    	csrBytes, err := x509.CreateCertificateRequest(rand.Reader, template, crypto.PrivateKey(priv))
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 06 12:48:53 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. src/slices/iter_test.go

    // Copyright 2024 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 slices_test
    
    import (
    	"iter"
    	"math/rand/v2"
    	. "slices"
    	"testing"
    )
    
    func TestAll(t *testing.T) {
    	for size := 0; size < 10; size++ {
    		var s []int
    		for i := range size {
    			s = append(s, i)
    		}
    		ei, ev := 0, 0
    		cnt := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. pkg/registry/core/service/ipallocator/ipallocator.go

    	// This is required because it depends on the ServiceCIDR to be ready.
    	ready atomic.Bool
    
    	// metrics is a metrics recorder that can be disabled
    	metrics     metricsRecorderInterface
    	metricLabel string
    
    	rand *rand.Rand
    }
    
    var _ Interface = &Allocator{}
    
    // NewIPAllocator returns an IP allocator associated to a network range
    // that use the IPAddress objectto track the assigned IP addresses,
    // using an informer cache as storage.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:04 UTC 2023
    - 17K bytes
    - Viewed (0)
  5. internal/dsync/drwmutex.go

    // Indicator if logging is enabled.
    var dsyncLog bool
    
    // Retry unit interval
    var lockRetryMinInterval time.Duration
    
    var lockRetryBackOff func(*rand.Rand, uint) time.Duration
    
    func init() {
    	// Check for MINIO_DSYNC_TRACE env variable, if set logging will be enabled for failed REST operations.
    	dsyncLog = env.Get("_MINIO_DSYNC_TRACE", "0") == "1"
    
    	lockRetryMinInterval = 250 * time.Millisecond
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top