Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/koding/kite
/ Seed
Method
Seed
utils/utils.go:30–34 ·
view source on GitHub ↗
(seed int64)
Source
from the content-addressed store, hash-verified
28
}
29
30
func
(r *lockedSource) Seed(seed int64) {
31
r.lk.Lock()
32
r.src.Seed(seed)
33
r.lk.Unlock()
34
}
35
36
// Int31n returns a pseudo-random int32 in range [0, n).
37
func
Int31n(n int32) int32 {
Callers
6
init
Function · 0.80
init
Function · 0.80
Run
Method · 0.80
init
Function · 0.80
init
Function · 0.80
init
Function · 0.80
Calls
no outgoing calls
Tested by
2
init
Function · 0.64
init
Function · 0.64