diff options
Diffstat (limited to 'models/user/user.go')
-rw-r--r-- | models/user/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user/user.go b/models/user/user.go index 57a7fcadfa..38352fe5e2 100644 --- a/models/user/user.go +++ b/models/user/user.go @@ -533,7 +533,7 @@ const SaltByteLength = 16 // GetUserSalt returns a random user salt token. func GetUserSalt() (string, error) { - rBytes, err := util.RandomBytes(SaltByteLength) + rBytes, err := util.CryptoRandomBytes(SaltByteLength) if err != nil { return "", err } |