working commit

This commit is contained in:
2026-02-02 18:10:45 +02:00
parent 41e1b253f7
commit 042d75cc2d
9 changed files with 214 additions and 264 deletions
+14
View File
@@ -0,0 +1,14 @@
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)
}