Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/syncthing/syncthing
/ Int63
Method
Int63
lib/rand/securesource.go:40–42 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
38
}
39
40
func
(s *secureSource) Int63() int64 {
41
return
int64(s.Uint64() & (1<<63 - 1))
42
}
43
44
func
(s *secureSource) Read(p []byte) (int, error) {
45
s.mut.Lock()
Callers
9
TestSecureSource
Function · 0.80
BenchmarkSecureSource
Function · 0.80
Int63
Function · 0.80
TestCopyRange
Function · 0.80
newFakeFilesystem
Function · 0.80
ReadRand
Function · 0.80
readRand
Function · 0.80
generatePrefixed
Function · 0.80
handler
Method · 0.80
Calls
1
Uint64
Method · 0.95
Tested by
3
TestSecureSource
Function · 0.64
BenchmarkSecureSource
Function · 0.64
TestCopyRange
Function · 0.64