prow/plugins/approve/approvers/owners.go
func (o Owners) GetShuffledApprovers() []string {
	approversList := o.GetAllPotentialApprovers()
	order := rand.New(rand.NewSource(o.seed)).Perm(len(approversList))
	people := make([]string, 0, len(approversList))
	for _, i := range order {
		people = append(people, approversList[i])
	}
	return people
}
func (o Owners) GetShuffledApprovers() []string {
	approversList := o.GetAllPotentialApprovers()
	order := rand.New(rand.NewSource(o.seed)).Perm(len(approversList))
	people := make([]string, 0, len(approversList))
	for _, i := range order {
		people = append(people, approversList[i])
	}
	return people
}
func ( o Owners ) GetShuffledApprovers ( ) [ ] string { approversList := o . GetAllPotentialApprovers ( ) order := rand . New ( rand . NewSource ( o . seed ) ) . Perm ( len ( approversList ) ) people := make ( [ ] string , 0 , len ( approversList ) ) for _ , i := range order { people = append ( people , approversList [ i ] ) } return people }
// GetShuffledApprovers shuffles the potential approvers so that we don't
// always suggest the same people.
GetShuffledApprovers shuffles the potential approvers so that we don t always suggest the same people .