MCPcopy Create free account
hub / github.com/rilldata/rill / NewRandom

Function NewRandom

runtime/pkg/securetoken/securetoken.go:25–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25func NewRandom() *Codec {
26 keyPairs := [][]byte{securecookie.GenerateRandomKey(32), securecookie.GenerateRandomKey(32)}
27 return NewCodec(keyPairs)
28}
29
30func (c *Codec) Encode(value any) (string, error) {
31 return securecookie.EncodeMulti("", value, c.codecs...)

Callers 3

NewServerFunction · 0.92
TestCodecSimpleFunction · 0.70
TestCodecComplexFunction · 0.70

Calls 1

NewCodecFunction · 0.85

Tested by 2

TestCodecSimpleFunction · 0.56
TestCodecComplexFunction · 0.56