github.com/operator-framework/operator-lifecycle-manager@v0.30.0/pkg/lib/queueinformer/loop_id.go (about)

     1  package queueinformer
     2  
     3  import (
     4  	"encoding/base64"
     5  	"math/rand"
     6  )
     7  
     8  func NewLoopID() string {
     9  	len := 5
    10  	buff := make([]byte, len)
    11  	rand.Read(buff)
    12  	str := base64.StdEncoding.EncodeToString(buff)
    13  	return str[:len]
    14  }