aboutsummaryrefslogtreecommitdiff
path: root/src/ejabberd_auth_sql.erl
diff options
context:
space:
mode:
authorMickael Remond <mremond@process-one.net>2016-11-09 09:04:58 +0100
committerMickael Remond <mremond@process-one.net>2016-11-09 09:04:58 +0100
commit42bede77a1a36c6bbc1ce3c2728e8c3dd78eb5f2 (patch)
tree677c46157270f24a40200ebb21beb5ba0397d358 /src/ejabberd_auth_sql.erl
parentExpose unregister API command (diff)
parentSupport several groups separated by ; in add_rosteritem command (diff)
Merge branch 'master' of github.com:processone/ejabberd
Diffstat (limited to 'src/ejabberd_auth_sql.erl')
-rw-r--r--src/ejabberd_auth_sql.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ejabberd_auth_sql.erl b/src/ejabberd_auth_sql.erl
index d6d945e02..93dac4f4f 100644
--- a/src/ejabberd_auth_sql.erl
+++ b/src/ejabberd_auth_sql.erl
@@ -406,7 +406,7 @@ password_to_scram(Password) ->
?SCRAM_DEFAULT_ITERATION_COUNT).
password_to_scram(Password, IterationCount) ->
- Salt = crypto:rand_bytes(?SALT_LENGTH),
+ Salt = randoms:bytes(?SALT_LENGTH),
SaltedPassword = scram:salted_password(Password, Salt,
IterationCount),
StoredKey =