- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for randinit (0.2 sec)
-
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/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/math/big/gcd_test.go
// This file implements a GCD benchmark. // Usage: go test math/big -test.bench GCD package big import ( "math/rand" "testing" ) // randInt returns a pseudo-random Int in the range [1<<(size-1), (1<<size) - 1] func randInt(r *rand.Rand, size uint) *Int { n := new(Int).Lsh(intOne, size-1) x := new(Int).Rand(r, n) return x.Add(x, n) // make sure result > 1<<(size-1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 14 19:11:43 UTC 2016 - 2.2K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/main0.c
// int8_t DidInitRun(); // int8_t DidMainRun(); // int32_t FromPkg(); // uint32_t Divu(uint32_t, uint32_t); int main(void) { int8_t ran_init = DidInitRun(); if (!ran_init) { fprintf(stderr, "ERROR: DidInitRun returned unexpected results: %d\n", ran_init); return 1; } int8_t ran_main = DidMainRun(); if (ran_main) { fprintf(stderr, "ERROR: DidMainRun returned unexpected results: %d\n",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.1K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/GradlePluginIntegrationTest.groovy
setup: def externalInitFile = temporaryFolder.createFile("initscripts/somePath/anInit.gradle") externalInitFile << """ buildFinished { println "Gradle Plugin received build finished!" } """ when: initFile << """ apply from: "somePath/anInit.gradle" """ then: def executed = succeeds('tasks')
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Aug 18 22:31:11 UTC 2020 - 3.6K 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/cmd/go/internal/workcmd/init.go
current go version will also be listed in the go.work file. See the workspaces reference at https://go.dev/ref/mod#workspaces for more information. `, Run: runInit, } func init() { base.AddChdirFlag(&cmdInit.Flag) base.AddModCommonFlags(&cmdInit.Flag) } func runInit(ctx context.Context, cmd *base.Command, args []string) { modload.InitWorkfile() modload.ForceUseModules = true gowork := modload.WorkFilePath()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Jun 03 21:13:11 UTC 2023 - 1.6K bytes - Viewed (0) -
src/cmd/go/internal/modcmd/init.go
Gopkg.lock), and the current directory (if in GOPATH). See https://golang.org/ref/mod#go-mod-init for more about 'go mod init'. `, Run: runInit, } func init() { base.AddChdirFlag(&cmdInit.Flag) base.AddModCommonFlags(&cmdInit.Flag) } func runInit(ctx context.Context, cmd *base.Command, args []string) { if len(args) > 1 { base.Fatalf("go: 'go mod init' accepts at most one argument") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 19 15:51:46 UTC 2023 - 1.3K bytes - Viewed (0) -
src/internal/fuzz/mem.go
// May be reset by coordinator. count int64 // valueLen is the number of bytes in region which should be read. valueLen int // randState and randInc hold the state of a pseudo-random number generator. randState, randInc uint64 // rawInMem is true if the region holds raw bytes, which occurs during // minimization. If true after the worker fails during minimization, this
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 28 03:44:27 UTC 2022 - 4.5K bytes - Viewed (0) -
src/runtime/race0.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 2.8K bytes - Viewed (0)