MCPcopy Create free account
hub / github.com/adeljck/PassGet / NewRandom

Function NewRandom

modules/finalshell/decrypt.go:22–24  ·  view source on GitHub ↗
(seed int64)

Source from the content-addressed store, hash-verified

20}
21
22func NewRandom(seed int64) *Random {
23 return &Random{seed: (seed ^ 0x5DEECE66D) & ((1 << 48) - 1)}
24}
25
26func (r *Random) next(bits int) int64 {
27 r.seed = (r.seed*0x5DEECE66D + 0xB) & ((1 << 48) - 1)

Callers 1

randomKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected