func (s *ContentSet) PickRandom() content.ID {
	s.mu.Lock()
	defer s.mu.Unlock()

	if len(s.ids) == 0 {
		return content.EmptyID
	}

	// nolint:gosec
	return s.ids[rand.Intn(len(s.ids))]
}
// PickRandom picks one random content from the set or empty string.
PickRandom picks one random content from the set or empty string.
// PickRandom picks one random content from the set or empty string .
func (s *ContentSet) PickRandom() content.ID {
	s.mu.Lock()
	defer s.mu.Unlock()
	if len(s.ids) == 0 {
		return content.EmptyID
	}
	return s.ids[rand.Intn(len(s.ids))]
}
func ( s * ContentSet ) PickRandom ( ) content . ID { s . mu . Lock ( ) defer s . mu . Unlock ( ) if len ( s . ids ) == 0 { return content . EmptyID } return s . ids [ rand . Intn ( len ( s . ids ) ) ] }
PickRandom picks one random content from the set or empty string.
PickRandom picks one random content from the set or empty string .
// nolint:gosec