This commit is contained in:
2026-04-02 15:16:34 +08:00
commit 4facf82956
58 changed files with 6630 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
package common
import (
"crypto/rand"
"fmt"
)
func RandomString(length int) string {
randomBytes := make([]byte, length)
rand.Read(randomBytes)
return fmt.Sprintf("%x", randomBytes)[:length]
}
type MediaFormat int