diff options
Diffstat (limited to 'src/ejabberd_auth.erl')
-rw-r--r-- | src/ejabberd_auth.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ejabberd_auth.erl b/src/ejabberd_auth.erl index 0552f801a..7894679a5 100644 --- a/src/ejabberd_auth.erl +++ b/src/ejabberd_auth.erl @@ -693,7 +693,7 @@ password_to_scram(Password) -> password_to_scram(#scram{} = Password, _IterationCount) -> Password; password_to_scram(Password, IterationCount) -> - Salt = randoms:bytes(?SALT_LENGTH), + Salt = p1_rand:bytes(?SALT_LENGTH), SaltedPassword = scram:salted_password(Password, Salt, IterationCount), StoredKey = scram:stored_key(scram:client_key(SaltedPassword)), ServerKey = scram:server_key(SaltedPassword), |