func (s *secretStore) NewSecret(ctx context.Context,
	id [sha256.Size]byte) ([lsat.SecretSize]byte, error) {

	var secret [lsat.SecretSize]byte
	if _, err := rand.Read(secret[:]); err != nil {
		return secret, err
	}

	_, err := s.Put(ctx, idKey(id), string(secret[:]))
	return secret, err
}
// NewSecret creates a new cryptographically random secret which is keyed by the
// given hash.
NewSecret creates a new cryptographically random secret which is keyed by the
given hash.
// NewSecret creates a new cryptographically random secret which is keyed by the // given hash .
func (s *secretStore) NewSecret(ctx context.Context,
	id [sha256.Size]byte) ([lsat.SecretSize]byte, error) {
	var secret [lsat.SecretSize]byte
	if _, err := rand.Read(secret[:]); err != nil {
		return secret, err
	}
	_, err := s.Put(ctx, idKey(id), string(secret[:]))
	return secret, err
}
func ( s * secretStore ) NewSecret ( ctx context . Context , id [ sha256 . Size ] byte ) ( [ lsat . SecretSize ] byte , error ) { var secret [ lsat . SecretSize ] byte if _ , err := rand . Read ( secret [ : ] ) ; err != nil { return secret , err } _ , err := s . Put ( ctx , idKey ( id ) , string ( secret [ : ] ) ) return secret , err }
NewSecret creates a new cryptographically random secret which is keyed by the
given hash.
NewSecret creates a new cryptographically random secret which is keyed by the given hash .