diff options
Diffstat (limited to 'src/cyrsasl_scram.erl')
-rw-r--r-- | src/cyrsasl_scram.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cyrsasl_scram.erl b/src/cyrsasl_scram.erl index 78eae8b44..069eae117 100644 --- a/src/cyrsasl_scram.erl +++ b/src/cyrsasl_scram.erl @@ -118,7 +118,7 @@ mech_step(#state{step = 2} = State, ClientIn) -> Pass#scram.iterationcount}; true -> TempSalt = - randoms:bytes(?SALT_LENGTH), + p1_rand:bytes(?SALT_LENGTH), SaltedPassword = scram:salted_password(Pass, TempSalt, @@ -132,7 +132,7 @@ mech_step(#state{step = 2} = State, ClientIn) -> str:substr(ClientIn, str:str(ClientIn, <<"n=">>)), ServerNonce = - base64:encode(randoms:bytes(?NONCE_LENGTH)), + base64:encode(p1_rand:bytes(?NONCE_LENGTH)), ServerFirstMessage = iolist_to_binary( ["r=", |