Compare commits
No commits in common. "04dad7d5af13dc22cea0a6d73f94ccfb57776cff" and "4257994cabff89b53f23606b8165e20aeea32f69" have entirely different histories.
04dad7d5af
...
4257994cab
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ import (
|
|||
"crypto/rand"
|
||||
"encoding/hex"
|
||||
"log"
|
||||
mathrand "math/rand/v2"
|
||||
mathrand "math/rand"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
@ -14,7 +14,7 @@ func GenerateUrl(length uint8) string {
|
|||
listChars := []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")
|
||||
b := make([]rune, length)
|
||||
for i := range b {
|
||||
b[i] = listChars[mathrand.IntN(len(listChars))]
|
||||
b[i] = listChars[mathrand.Intn(len(listChars))]
|
||||
}
|
||||
|
||||
return string(b)
|
||||
|
|
Loading…
Reference in a new issue