pin: concatenation order changed.

This commit is contained in:
k1574 2020-09-17 23:28:29 +05:00
parent 1211969dfc
commit 15f9e4db8c

View file

@ -34,7 +34,7 @@ GetPin(s []rune, l int, i int) string {
ret := "" ret := ""
slen := len(s) slen := len(s)
for j:=0 ; j<l ; j++ { for j:=0 ; j<l ; j++ {
ret += string(s[ ( i/Pow(slen, j) ) % slen] ) ret = string(s[ ( i/Pow(slen, j) ) % slen] ) + ret
} }
return ret return ret
} }