mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-16 15:10:12 +01:00
replace deprecated math/rand with crypto/rand
This commit is contained in:
parent
adeef4342e
commit
8da914cf20
1 changed files with 1 additions and 1 deletions
|
|
@ -2,8 +2,8 @@ package util
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"crypto/rand"
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/rand"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// GenerateRandomSHA256 generates a random 64 character SHA 256 hash string
|
// GenerateRandomSHA256 generates a random 64 character SHA 256 hash string
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue