Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for prand (3.97 sec)

  1. src/crypto/x509/x509_test.go

    func TestCreateCertificateRequest(t *testing.T) {
    	random := rand.Reader
    
    	ecdsa256Priv, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
    	if err != nil {
    		t.Fatalf("Failed to generate ECDSA key: %s", err)
    	}
    
    	ecdsa384Priv, err := ecdsa.GenerateKey(elliptic.P384(), rand.Reader)
    	if err != nil {
    		t.Fatalf("Failed to generate ECDSA key: %s", err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 163.4K bytes
    - Viewed (0)
  2. src/crypto/x509/verify_test.go

    	priv, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
    	if err != nil {
    		return nil, nil, err
    	}
    
    	serialNumberLimit := new(big.Int).Lsh(big.NewInt(1), 128)
    	serialNumber, _ := rand.Int(rand.Reader, serialNumberLimit)
    
    	template := &Certificate{
    		SerialNumber: serialNumber,
    		Subject:      pkix.Name{CommonName: cn},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 110.2K bytes
    - Viewed (0)
  3. cmd/admin-handlers.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"bytes"
    	"context"
    	crand "crypto/rand"
    	"crypto/rsa"
    	"crypto/subtle"
    	"crypto/x509"
    	"encoding/base64"
    	"encoding/json"
    	"encoding/pem"
    	"errors"
    	"fmt"
    	"hash/crc32"
    	"io"
    	"math"
    	"net/http"
    	"net/url"
    	"os"
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/crypto/chacha20poly1305/chacha20poly1305_amd64.s

    	DECQ          itr2
    	JNE           openSSEPreparePolyKey
    
    	// A0|B0 hold the Poly1305 32-byte key, C0,D0 can be discarded
    	PADDL ·chacha20Constants<>(SB), A0; PADDL state1Store, B0
    
    	// Clamp and store the key
    	PAND ·polyClampMask<>(SB), A0
    	MOVO A0, rStore; MOVO B0, sStore
    
    	// Hash AAD
    	MOVQ ad_len+80(FP), itr2
    	CALL polyHashADInternal<>(SB)
    
    openSSEMainLoop:
    	CMPQ inl, $256
    	JB   openSSEMainLoopDone
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 105.6K bytes
    - Viewed (0)
  5. cmd/bucket-replication.go

    	go p.startResyncRoutine(ctx, buckets, objAPI)
    	return nil
    }
    
    func (p *ReplicationPool) startResyncRoutine(ctx context.Context, buckets []BucketInfo, objAPI ObjectLayer) {
    	r := rand.New(rand.NewSource(time.Now().UnixNano()))
    	// Run the replication resync in a loop
    	for {
    		if err := p.loadResync(ctx, buckets, objAPI); err == nil {
    			<-ctx.Done()
    			return
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 114.4K bytes
    - Viewed (0)
  6. src/database/sql/sql_test.go

    		sem <- true
    		wg.Add(1)
    		go func() {
    			defer func() {
    				<-sem
    				wg.Done()
    			}()
    			qwait := (time.Duration(rand.Intn(milliWait)) * time.Millisecond).String()
    
    			ctx, cancel := context.WithTimeout(ctx, time.Duration(rand.Intn(milliWait))*time.Millisecond)
    			defer cancel()
    
    			tx, err := db.BeginTx(ctx, nil)
    			if err != nil {
    				return
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  7. pkg/kubelet/kubelet_node_status_test.go

    	"k8s.io/apimachinery/pkg/api/resource"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/labels"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/util/rand"
    	"k8s.io/apimachinery/pkg/util/strategicpatch"
    	"k8s.io/apimachinery/pkg/util/uuid"
    	"k8s.io/apimachinery/pkg/util/wait"
    	clientset "k8s.io/client-go/kubernetes"
    	"k8s.io/client-go/kubernetes/fake"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
  8. src/net/http/transport_test.go

    // HTTP/1 and HTTP/2). This
    
    package http_test
    
    import (
    	"bufio"
    	"bytes"
    	"compress/gzip"
    	"context"
    	"crypto/rand"
    	"crypto/tls"
    	"crypto/x509"
    	"encoding/binary"
    	"errors"
    	"fmt"
    	"go/token"
    	"internal/nettrace"
    	"io"
    	"log"
    	mrand "math/rand"
    	"net"
    	. "net/http"
    	"net/http/httptest"
    	"net/http/httptrace"
    	"net/http/httputil"
    	"net/http/internal/testcert"
    	"net/textproto"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/data.go

    	// and then letting threads copy down, but probably not worth it.
    	sect := Segtext.Sections[0]
    
    	sect.Align = int32(Funcalign)
    
    	ldr := ctxt.loader
    
    	if *flagRandLayout != 0 {
    		r := rand.New(rand.NewSource(*flagRandLayout))
    		textp := ctxt.Textp
    		i := 0
    		// don't move the buildid symbol
    		if len(textp) > 0 && ldr.SymName(textp[0]) == "go:buildid" {
    			i++
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (1)
  10. pkg/scheduler/schedule_one_test.go

    func TestSchedulerGuaranteeNonNilNodeInSchedulingCycle(t *testing.T) {
    	if goruntime.GOOS == "windows" {
    		// TODO: remove skip once the failing test has been fixed.
    		t.Skip("Skip failing test on Windows.")
    	}
    	random := rand.New(rand.NewSource(time.Now().UnixNano()))
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    	var (
    		initialNodeNumber        = 1000
    		initialPodNumber         = 500
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
Back to top