Files
mstore/pkg/client/fileaux.go
T
2026-02-02 18:10:45 +02:00

15 lines
253 B
Go

package client
import (
"encoding/hex"
"fmt"
"math/rand"
)
func makeTmpFileName(prefix string) string {
randBytes := make([]byte, 6)
rand.Read(randBytes)
suffix := hex.EncodeToString(randBytes)
return fmt.Sprintf("%s.tmp.%s", prefix, suffix)
}