- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for runtime_randn (0.1 sec)
-
src/math/rand/rand.go
} return r } //go:linkname runtime_rand runtime.rand func runtime_rand() uint64 // runtimeSource is an implementation of Source64 that uses the runtime // fastrand functions. type runtimeSource struct { // The mutex is used to avoid race conditions in Read. mu sync.Mutex } func (*runtimeSource) Int63() int64 { return int64(runtime_rand() & rngMask) }
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/math/rand/v2/rand.go
// convenience functions. var globalRand = &Rand{src: runtimeSource{}} //go:linkname runtime_rand runtime.rand func runtime_rand() uint64 // runtimeSource is a Source that uses the runtime fastrand functions. type runtimeSource struct{} func (runtimeSource) Uint64() uint64 { return runtime_rand() } // Int64 returns a non-negative pseudo-random 63-bit integer as an int64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 02:25:49 UTC 2024 - 12.8K bytes - Viewed (0)