This commit is contained in:
Jay 2018-10-09 23:50:22 +08:00
parent 4c3fe82c82
commit d633b66720

View File

@ -349,9 +349,7 @@ func lottery(sub, txt string, s *lineobj.SourceObject) (res string) {
perm := rand.Perm(len(arr)) perm := rand.Perm(len(arr))
for idx, val := range perm { for idx, val := range perm {
dest[val] = arr[idx] dest[val] = arr[idx]
arr[idx] = nil
} }
arr = nil
data := dest[0] data := dest[0]