Skip to content

Commit a69e788

Browse files
author
Anand
committed
Export options
1 parent 712e031 commit a69e788

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

utils.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package main
33

44
import (
55
"bufio"
6+
"encoding/hex"
67
"encoding/json"
78
"errors"
89
"fmt"
@@ -387,3 +388,10 @@ func setShowPasswords() error {
387388
settingsRider.ShowPasswords = true
388389
return nil
389390
}
391+
392+
// Generate a random file name
393+
func randomFileName(folder string, suffix string) string {
394+
395+
_, name := generateRandomBytes(16)
396+
return filepath.Join(folder, hex.EncodeToString(name)+suffix)
397+
}

0 commit comments

Comments
 (0)