diff options
Diffstat (limited to 'modules/secret/secret.go')
-rw-r--r-- | modules/secret/secret.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/secret/secret.go b/modules/secret/secret.go index 6a5024b729..6b410f2381 100644 --- a/modules/secret/secret.go +++ b/modules/secret/secret.go @@ -24,7 +24,7 @@ func New() (string, error) { // NewWithLength creates a new secret for a given length func NewWithLength(length int64) (string, error) { - return util.RandomString(length) + return util.CryptoRandomString(length) } // AesEncrypt encrypts text and given key with AES. |