aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/pama/apply.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/pama/apply.go b/lib/pama/apply.go
index f97c7701..2dd9ecfc 100644
--- a/lib/pama/apply.go
+++ b/lib/pama/apply.go
@@ -1,9 +1,10 @@
package pama
import (
+ "crypto/rand"
"encoding/base64"
"fmt"
- "math/rand"
+ mathrand "math/rand"
"strings"
"git.sr.ht/~rjarry/aerc/lib/log"
@@ -88,7 +89,7 @@ func generateTag(n int) (string, error) {
func makeUnique(s string) string {
tag, err := generateTag(4)
if err != nil {
- return fmt.Sprintf("%s_%d", s, rand.Uint32())
+ return fmt.Sprintf("%s_%d", s, mathrand.Uint32())
}
return fmt.Sprintf("%s_%s", s, tag)
}