- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 460 for rand1 (0.08 sec)
-
pkg/controller/statefulset/stateful_set_utils_test.go
claimRefs, metav1.OwnerReference{ Name: "rand1", APIVersion: "v1", Kind: "Pod", UID: "rand1-uid", }, metav1.OwnerReference{ Name: "rand2", APIVersion: "v1", Kind: "Pod", UID: "rand2-uid", }) } claim.SetOwnerReferences(claimRefs)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 50.9K bytes - Viewed (0) -
src/runtime/rand.go
mp.chacha8.Init64(seed) mp.cheaprand = rand() } // randn is like rand() % n but faster. // Do not change signature: used via linkname from other packages. // //go:nosplit //go:linkname randn func randn(n uint32) uint32 { // See https://lemire.me/blog/2016/06/27/a-fast-alternative-to-the-modulo-reduction/ return uint32((uint64(uint32(rand())) * uint64(n)) >> 32) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 14:32:47 UTC 2024 - 8K bytes - Viewed (0) -
src/math/rand/v2/rand.go
} // New returns a new Rand that uses random values from src // to generate other random values. func New(src Source) *Rand { return &Rand{src: src} } // Int64 returns a non-negative pseudo-random 63-bit integer as an int64. func (r *Rand) Int64() int64 { return int64(r.src.Uint64() &^ (1 << 63)) } // Uint32 returns a pseudo-random 32-bit value as a uint32. func (r *Rand) Uint32() uint32 { return uint32(r.src.Uint64() >> 32) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 02:25:49 UTC 2024 - 12.8K bytes - Viewed (0) -
src/math/rand/rand.go
readPos int8 } // New returns a new [Rand] that uses random values from src // to generate other random values. func New(src Source) *Rand { s64, _ := src.(Source64) return &Rand{src: src, s64: s64} } // Seed uses the provided seed value to initialize the generator to a deterministic state. // Seed should not be called concurrently with any other [Rand] method. func (r *Rand) Seed(seed int64) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:09:08 UTC 2024 - 16.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/cmd/bisect/rand.go
// license that can be found in the LICENSE file. // Starting in Go 1.20, the global rand is auto-seeded, // with a better value than the current Unix nanoseconds. // Only seed if we're using older versions of Go. //go:build !go1.20 package main import ( "math/rand" "time" ) func init() { rand.Seed(time.Now().UnixNano())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:10 UTC 2023 - 442 bytes - Viewed (0) -
src/crypto/rand/rand.go
// Copyright 2010 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 implements a cryptographically secure // random number generator. package rand import "io" // Reader is a global, shared instance of a cryptographically // secure random number generator. // // - On Linux, FreeBSD, Dragonfly, and Solaris, Reader uses getrandom(2)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 20:02:21 UTC 2024 - 1.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/conc_alloc_test.go
classes[j].target = classes[j].lowerBound + rands.Float64() lowSum += classes[j].lowerBound highSum += classes[j].upperBound }) default: style = "not-set-by-bounds" for j := 0; j < probLen; j++ { x := math.Max(0, rands.Float64()*5-1) classes[j].lowerBound = x classes[j].target = x + 2*rands.Float64() classes[j].upperBound = x + 3*rands.Float64()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 07 18:17:27 UTC 2022 - 5.3K bytes - Viewed (0) -
src/crypto/internal/boring/rand.go
qmuntal <******@****.***> 1689090977 +0200
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 17:51:31 UTC 2023 - 696 bytes - Viewed (0) -
src/crypto/tls/handshake_messages_test.go
panic("rand.Read failed: " + err.Error()) } return r } func randomString(n int, rand *rand.Rand) string { b := randomBytes(n, rand) return string(b) } func (*clientHelloMsg) Generate(rand *rand.Rand, size int) reflect.Value { m := &clientHelloMsg{} m.vers = uint16(rand.Intn(65536)) m.random = randomBytes(32, rand) m.sessionId = randomBytes(rand.Intn(32), rand)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 15.7K bytes - Viewed (0) -
src/testing/quick/quick.go
Values func([]reflect.Value, *rand.Rand) } var defaultConfig Config // getRand returns the *rand.Rand to use for a given Config. func (c *Config) getRand() *rand.Rand { if c.Rand == nil { return rand.New(rand.NewSource(time.Now().UnixNano())) } return c.Rand } // getMaxCount returns the maximum number of iterations to run for a given // Config.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 17:55:47 UTC 2023 - 10.1K bytes - Viewed (0)