Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pydio/cells
/ getRandomSource
Function
getRandomSource
common/utils/std/random.go:46–51 ·
view source on GitHub ↗
Random [m,n]
()
Source
from the content-addressed store, hash-verified
44
45
// Random [m,n]
46
func
getRandomSource() rand.Source {
47
randMutex.Lock()
48
defer
randMutex.Unlock()
49
50
return
src
51
}
52
53
// Randkey produces a random string with a given length
54
func
Randkey(n int) string {
Callers
1
Randkey
Function · 0.85
Calls
2
Lock
Method · 0.65
Unlock
Method · 0.65
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…