init: git clone https://github.com/iuroc/bilidown.git
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user