Use p1_rand:bytes instead of crypto to work in supported Erlang versions (#243)
This commit is contained in:
parent
18be432fdf
commit
774cc46481
|
@ -132,7 +132,7 @@ password_to_scram(Password) ->
|
|||
password_to_scram(#scram{} = Password, _) ->
|
||||
Password;
|
||||
password_to_scram(Password, IterationCount) ->
|
||||
Salt = crypto:rand_bytes(?SALT_LENGTH),
|
||||
Salt = p1_rand:bytes(?SALT_LENGTH),
|
||||
SaltedPassword = salted_password(Password, Salt, IterationCount),
|
||||
StoredKey = stored_key(scram2:client_key(SaltedPassword)),
|
||||
ServerKey = server_key(SaltedPassword),
|
||||
|
|
Loading…
Reference in New Issue