MCPcopy
hub / github.com/cli/cli / computeSeed

Function computeSeed

pkg/cmd/repo/garden/garden.go:485–498  ·  view source on GitHub ↗
(seed string)

Source from the content-addressed store, hash-verified

483}
484
485func computeSeed(seed string) int64 {
486 lol := ""
487
488 for _, r := range seed {
489 lol += fmt.Sprintf("%d", int(r))
490 }
491
492 result, err := strconv.ParseInt(lol[0:10], 10, 64)
493 if err != nil {
494 panic(err)
495 }
496
497 return result
498}
499
500func clear(io *iostreams.IOStreams) {
501 cmd := exec.Command("clear")

Callers 1

gardenRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected