feat: import Sea vHost single-server testing release

This commit is contained in:
canglan committed 2026-10-30 08:39:10 +08:00
commit 248badd33e
441 files changed
+63221

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
package identity
import (
"crypto/rand"
"encoding/hex"
)
func New(prefix string) (string, error) {
data := make([]byte, 16)
if _, err := rand.Read(data); err != nil {
return "", err
}
return prefix + "_" + hex.EncodeToString(data), nil
}