From 23a64bf71e063a548f59d4699c16f79a570339d4 Mon Sep 17 00:00:00 2001 From: Magnus Ahltorp Date: Sat, 7 Mar 2015 22:38:45 +0100 Subject: Use mochihex instead of our own hex conversion --- src/hex.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/hex.erl b/src/hex.erl index 1eb1e6a..8e70826 100644 --- a/src/hex.erl +++ b/src/hex.erl @@ -6,8 +6,7 @@ -spec bin_to_hexstr(binary()) -> string(). bin_to_hexstr(Bin) -> - lists:flatten([io_lib:format("~2.16.0B", [X]) || - X <- binary_to_list(Bin)]). + mochihex:to_hex(Bin). hexstr_to_bin(S) -> hexstr_to_bin(S, []). -- cgit v1.1