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

Function randomString

runtime/server/controller.go:460–467  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

458}
459
460func randomString(n int) string {
461 b := make([]byte, n)
462 _, err := rand.Read(b)
463 if err != nil {
464 panic(err)
465 }
466 return hex.EncodeToString(b)
467}
468
469func must[T any](v T, err error) T {
470 if err != nil {

Callers 1

CreateTriggerMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected