This commit is contained in:
kun98
2022-08-17 00:00:09 +09:00
committed by finley
parent db3a2d2876
commit 23a6f95c18

View File

@@ -106,7 +106,7 @@ func (dict *SimpleDict) RandomDistinctKeys(limit int) []string {
result := make([]string, size)
i := 0
for k := range dict.m {
if i == limit {
if i == size {
break
}
result[i] = k