1
0
mirror of https://github.com/fumiama/imago.git synced 2026-06-05 00:10:26 +08:00

更新pick遍历阈值判断

This commit is contained in:
fumiama
2021-08-11 21:53:25 +08:00
parent 0a7701a2ca
commit 853f6c226f

View File

@@ -176,7 +176,7 @@ func Pick(exclude []string) string {
return ""
} else if le == 0 {
return sum[rand.Intn(len(sum))]
} else if ls/le > 10 {
} else if (ls >> 2) > le {
name := sum[rand.Intn(len(sum))]
for namein(name, exclude) {
name = sum[rand.Intn(len(sum))]