Rand stands for random Calls all and then randomizes. Returns one candidate.
| 15 | // Rand stands for random |
| 16 | // Calls all and then randomizes. Returns one candidate. |
| 17 | type Rand struct { |
| 18 | All |
| 19 | } |
| 20 | |
| 21 | func (p *Rand) rand(upstreams []*upstream.Fs) *upstream.Fs { |
| 22 | return upstreams[rand.Intn(len(upstreams))] |
nothing calls this directly
no outgoing calls
no test coverage detected