Skip to content

Commit d68bbd6

Browse files
committed
Followed the compilation warning advice and replaced the usage of erlang:phash/2 with erlang:phash2/2. Its returned values from hid gonna be 1 less than in the case of using erlang:phash/2, but as long as this is just used for generating unique host identifiers it does not matter
1 parent d797d24 commit d68bbd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uid.erl

+1-1
Original file line numberDiff line numberDiff line change
@@ -359,4 +359,4 @@ seq() ->
359359
%%
360360
%% host unique identifier
361361
hid(Node) ->
362-
<<(erlang:phash(Node, 1 bsl 32)):32>>.
362+
<<(erlang:phash2(Node, 1 bsl 32)):32>>.

0 commit comments

Comments
 (0)