fix breakrepeat shuffle

This commit is contained in:
源文雨
2022-10-07 10:49:55 +08:00
parent 6971da1abc
commit 519ae62760
3 changed files with 5 additions and 5 deletions

View File

@@ -37,8 +37,8 @@ func init() {
return
}
sm.Delete(gid)
if len(r) > 2 {
ru := []rune(r)
if len(r) > 5 {
ru := []rune(r[3:])
rand.Shuffle(len(ru), func(i, j int) {
ru[i], ru[j] = ru[j], ru[i]
})