MCPcopy Index your code
hub / github.com/rilldata/rill / randomBytes

Function randomBytes

admin/testadmin/testadmin.go:427–434  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

425}
426
427func randomBytes() []byte {
428 b := make([]byte, 16)
429 _, err := rand.Read(b)
430 if err != nil {
431 panic(err)
432 }
433 return b
434}
435
436func must[T any](v T, err error) T {
437 if err != nil {

Callers 3

NewWithOptionalRuntimeFunction · 0.85
NewUserWithDomainMethod · 0.85
newRuntimeServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected