Skip to content

Commit

Permalink
Use 'nif' as default mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
emqplus committed Aug 26, 2018
1 parent 53f32d7 commit 4767b35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bcrypt.erl
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ start() -> application:start(bcrypt).
stop() -> application:stop(bcrypt).

mechanism() ->
{ok, M} = application:get_env(bcrypt, mechanism),
M.
application:get_env(bcrypt, mechanism, nif).

gen_salt() -> do_gen_salt(mechanism()).
gen_salt(Rounds) -> do_gen_salt(mechanism(), Rounds).
Expand Down

0 comments on commit 4767b35

Please sign in to comment.