MCPcopy
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
40func (s *secureSource) Int63() int64 {
41 return int64(s.Uint64() & (1<<63 - 1))
42}
43
44func (s *secureSource) Read(p []byte) (int, error) {
45 s.mut.Lock()

Callers 9

TestSecureSourceFunction · 0.80
BenchmarkSecureSourceFunction · 0.80
Int63Function · 0.80
TestCopyRangeFunction · 0.80
newFakeFilesystemFunction · 0.80
ReadRandFunction · 0.80
readRandFunction · 0.80
generatePrefixedFunction · 0.80
handlerMethod · 0.80

Calls 1

Uint64Method · 0.95

Tested by 3

TestSecureSourceFunction · 0.64
BenchmarkSecureSourceFunction · 0.64
TestCopyRangeFunction · 0.64