checkmgr/check.go
func (cm *CheckManager) makeSecret() (string, error) {
	hash := sha256.New()
	x := make([]byte, 2048)
	if _, err := rand.Read(x); err != nil {
		return "", err
	}
	hash.Write(x)
	return hex.EncodeToString(hash.Sum(nil))[0:16], nil
}
func (cm *CheckManager) makeSecret() (string, error) {
	hash := sha256.New()
	x := make([]byte, 2048)
	if _, err := rand.Read(x); err != nil {
		return "", err
	}
	hash.Write(x)
	return hex.EncodeToString(hash.Sum(nil))[0:16], nil
}
func ( cm * CheckManager ) makeSecret ( ) ( string , error ) { hash := sha256 . New ( ) x := make ( [ ] byte , 2048 ) if _ , err := rand . Read ( x ) ; err != nil { return " " , err } hash . Write ( x ) return hex . EncodeToString ( hash . Sum ( nil ) ) [ 0 : 16 ] , nil }
// Create a dynamic secret to use with a new check
Create a dynamic secret to use with a new check