mirror of
https://github.com/fumiama/imago.git
synced 2026-06-05 00:10:26 +08:00
更新pick遍历阈值判断
This commit is contained in:
@@ -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))]
|
||||
|
||||
Reference in New Issue
Block a user