Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 580 for rend (0.08 sec)

  1. 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)
  2. 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)
  3. 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)
  4. docs_src/security/tutorial005_py310.py

        hashed_password: str
    
    
    pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
    
    oauth2_scheme = OAuth2PasswordBearer(
        tokenUrl="token",
        scopes={"me": "Read information about the current user.", "items": "Read items."},
    )
    
    app = FastAPI()
    
    
    def verify_password(plain_password, hashed_password):
        return pwd_context.verify(plain_password, hashed_password)
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. docs_src/security/tutorial005_py39.py

        hashed_password: str
    
    
    pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
    
    oauth2_scheme = OAuth2PasswordBearer(
        tokenUrl="token",
        scopes={"me": "Read information about the current user.", "items": "Read items."},
    )
    
    app = FastAPI()
    
    
    def verify_password(plain_password, hashed_password):
        return pwd_context.verify(plain_password, hashed_password)
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. src/internal/fuzz/pcg.go

    // necessary methods, optimized for speed.
    
    var globalInc atomic.Uint64 // PCG stream
    
    const multiplier uint64 = 6364136223846793005
    
    // pcgRand is a PRNG. It should not be copied or shared. No Rand methods are
    // concurrency safe.
    type pcgRand struct {
    	noCopy noCopy // help avoid mistakes: ask vet to ensure that we don't make a copy
    	state  uint64
    	inc    uint64
    }
    
    func godebugSeed() *int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:28:14 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  7. pkg/proxy/util/linebuffer_test.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package util
    
    import (
    	"math/rand"
    	"strings"
    	"testing"
    )
    
    func TestLineBufferWrite(t *testing.T) {
    	testCases := []struct {
    		name     string
    		input    []interface{}
    		expected string
    	}{
    		{
    			name:     "none",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 12:38:25 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/aes/aes.go

    			return err
    		}
    
    		nonceGen.next(b[randNonceSize:])
    
    		return nil
    	}
    
    	return &gcm{aead: aead, nonceFunc: nonceFunc}, nil
    }
    
    func randomNonce(b []byte) error {
    	_, err := rand.Read(b)
    	return err
    }
    
    type nonceGenerator struct {
    	// even at one million encryptions per second, this counter is enough for half a million years
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 19:25:52 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  9. src/math/rand/v2/auto_test.go

    // Copyright 2022 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_test
    
    import (
    	. "math/rand/v2"
    	"testing"
    )
    
    // This test is first, in its own file with an alphabetically early name,
    // to try to make sure that it runs early. It has the best chance of
    // detecting deterministic seeding if it's the first test that runs.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 30 17:09:26 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  10. src/math/rand/normal.go

    // Copyright 2009 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
    
    import (
    	"math"
    )
    
    /*
     * Normal distribution
     *
     * See "The Ziggurat Method for Generating Random Variables"
     * (Marsaglia & Tsang, 2000)
     * http://www.jstatsoft.org/v05/i08/paper [pdf]
     */
    
    const (
    	rn = 3.442619855899
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 6.3K bytes
    - Viewed (0)
Back to top