From 853f6c226f2cc278f663c7fa9d3e2a562beb3cd0 Mon Sep 17 00:00:00 2001 From: fumiama Date: Wed, 11 Aug 2021 21:53:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0pick=E9=81=8D=E5=8E=86?= =?UTF-8?q?=E9=98=88=E5=80=BC=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage.go b/storage.go index 86288ac..d50154a 100644 --- a/storage.go +++ b/storage.go @@ -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))]