Permalink
Browse files

More reliable way to ensure crypto module is loaded

  • Loading branch information...
1 parent a5b004e commit d8bf1fbae9feec77147041b087f4c7c6fbea57bd @yrashk yrashk committed May 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/agner.erl
View
@@ -111,7 +111,7 @@ versions(Name) ->
%%% private
%%%===================================================================
ensure_crypto_loaded() ->
- case code:load_file(crypto) of
+ case code:ensure_loaded(crypto) of
{module, crypto} ->
ignore;
{error, _Err} ->

0 comments on commit d8bf1fb

Please sign in to comment.