- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for randInt (0.17 sec)
-
src/net/dnsclient.go
"golang.org/x/net/dns/dnsmessage" ) // provided by runtime // //go:linkname runtime_rand runtime.rand func runtime_rand() uint64 func randInt() int { return int(uint(runtime_rand()) >> 1) // clear sign bit } func randIntn(n int) int { return randInt() % n } // reverseaddr returns the in-addr.arpa. or ip6.arpa. hostname of the IP // address addr suitable for rDNS (PTR) record lookup or an error if it fails
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:53 UTC 2024 - 5.7K bytes - Viewed (0) -
src/runtime/rand.go
lock mutex seed [32]byte state chacha8rand.State init bool } var readRandomFailed bool // randinit initializes the global random state. // It must be called before any use of grand. func randinit() { lock(&globalRand.lock) if globalRand.init { fatal("randinit twice") } seed := &globalRand.seed if startupRand != nil { for i, c := range startupRand { seed[i%len(seed)] ^= c
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 14:32:47 UTC 2024 - 8K bytes - Viewed (0) -
src/internal/fuzz/pcg.go
return r } func (r *pcgRand) step() { r.state *= multiplier r.state += r.inc } func (r *pcgRand) save(randState, randInc *uint64) { *randState = r.state *randInc = r.inc } func (r *pcgRand) restore(randState, randInc uint64) { r.state = randState r.inc = randInc } // uint32 returns a pseudo-random uint32. func (r *pcgRand) uint32() uint32 { x := r.state r.step()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 19:28:14 UTC 2024 - 3.3K bytes - Viewed (0) -
src/sync/pool.go
// Prevents false sharing on widespread platforms with // 128 mod (cache line size) = 0 . pad [128 - unsafe.Sizeof(poolLocalInternal{})%128]byte } // from runtime // //go:linkname runtime_randn runtime.randn func runtime_randn(n uint32) uint32 var poolRaceHash [128]uint64 // poolRaceAddr returns an address to use as the synchronization point // for race detector logic. We don't use the actual pointer stored in x
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 21:14:51 UTC 2024 - 9.4K bytes - Viewed (0)