- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for Int63 (0.12 sec)
-
internal/dsync/locked_rand.go
type lockedRandSource struct { lk sync.Mutex src rand.Source } // Int63 returns a non-negative pseudo-random 63-bit integer as an int64. func (r *lockedRandSource) Int63() (n int64) { r.lk.Lock() n = r.src.Int63() r.lk.Unlock() return } // Seed uses the provided seed value to initialize the generator to a // deterministic state.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Oct 18 15:39:59 UTC 2021 - 1.3K bytes - Viewed (0) -
api/go1.8.txt
pkg math/big, method (*Int) Sqrt(*Int) *Int pkg math/rand, func Uint64() uint64 pkg math/rand, method (*Rand) Uint64() uint64 pkg math/rand, type Source64 interface, Int63() int64 pkg math/rand, type Source64 interface { Int63, Seed, Uint64 } pkg math/rand, type Source64 interface, Seed(int64) pkg math/rand, type Source64 interface, Uint64() uint64 pkg net/http, const TrailerPrefix ideal-string
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Dec 21 05:25:57 UTC 2016 - 16.3K bytes - Viewed (0) -
cmd/test-utils_test.go
var src = rand.NewSource(time.Now().UnixNano()) func randString(n int) string { b := make([]byte, n) // A src.Int63() generates 63 random bits, enough for letterIdxMax characters! for i, cache, remain := n-1, src.Int63(), letterIdxMax; i >= 0; { if remain == 0 { cache, remain = src.Int63(), letterIdxMax } if idx := int(cache & letterIdxMask); idx < len(letterBytes) { b[i] = letterBytes[idx] i--
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Oct 01 22:13:18 UTC 2024 - 77K bytes - Viewed (0) -
cmd/object-api-utils.go
// 4 MB block. // Approx runtime ~30ms data := make([]byte, 4<<20) rng := rand.New(rand.NewSource(0)) for i := range data { // Generate compressible stream... data[i] = byte(rng.Int63() & 3) } failOnErr := func(err error) { if err != nil { logger.Fatal(errSelfTestFailure, "compress: error on self-test: %v", err) } } const skip = 2<<20 + 511
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 08 15:29:58 UTC 2024 - 37.1K bytes - Viewed (0) -
api/go1.txt
pkg math/rand, method (*Rand) Uint32() uint32 pkg math/rand, method (*Zipf) Uint64() uint64 pkg math/rand, type Rand struct pkg math/rand, type Source interface { Int63, Seed } pkg math/rand, type Source interface, Int63() int64 pkg math/rand, type Source interface, Seed(int64) pkg math/rand, type Zipf struct pkg mime, func AddExtensionType(string, string) error
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)