replace deprecated math/rand with crypto/rand

This commit is contained in:
nils måsén 2023-11-13 14:18:47 +01:00
parent adeef4342e
commit 8da914cf20

View file

@ -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