This commit is contained in:
poiuty 2023-05-15 13:25:43 +03:00
parent 03732ea80d
commit 249b30961f
4 changed files with 3 additions and 47 deletions

View file

@ -3,7 +3,6 @@ package main
import (
"fmt"
"log"
"math/rand"
"net"
"net/http"
"os"
@ -45,8 +44,6 @@ var (
)
func main() {
rand.Seed(time.Now().UnixNano())
startConfig()
initMysql()
@ -122,20 +119,6 @@ func socketHandler() {
}
}
func randInt(min int, max int) int {
return min + rand.Intn(max-min)
}
func randString(n int) string {
const alphanum = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
var bytes = make([]byte, n)
rand.Read(bytes)
for i, b := range bytes {
bytes[i] = alphanum[b%byte(len(alphanum))]
}
return string(bytes)
}
func fastStart() {
defer func() {
go updateFileRooms()