This is an automated email from the ASF dual-hosted git repository. linkinstar pushed a commit to branch dev in repository https://gitbox.apache.org/repos/asf/incubator-answer-plugins.git
commit 507dd03883903b0c0238fd1700437ceb7899793e Author: Sonui <[email protected]> AuthorDate: Tue Aug 13 14:38:30 2024 +0800 perf: remove type conversion --- notification-lark/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notification-lark/utils.go b/notification-lark/utils.go index 55c29c4..b1329bf 100644 --- a/notification-lark/utils.go +++ b/notification-lark/utils.go @@ -47,7 +47,7 @@ func GenerateRandomString(args *GenerateRandomStringArgs) string { } func RandomInt(min, max int64) int64 { - result, _ := rand.Int(rand.Reader, big.NewInt(int64(max-min))) + result, _ := rand.Int(rand.Reader, big.NewInt(max-min)) return result.Int64() + min }
