Browse Source

Merge pull request #230 from ten0s/master

Use phash2/1 explicitly. It's not in compat layer
Andreas Stenius 9 years ago
parent
commit
0b1cbebc68
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/erlydtl_filters.erl

+ 3 - 3
src/erlydtl_filters.erl

@@ -47,8 +47,8 @@
 -ifdef(TEST).
 -ifdef(TEST).
         -export([cast_to_float/1,cast_to_integer/1,stringformat_io/7,round/2,unjoin/2,addDefaultURI/1]).
         -export([cast_to_float/1,cast_to_integer/1,stringformat_io/7,round/2,unjoin/2,addDefaultURI/1]).
 -endif.
 -endif.
- 
--import(erlydtl_time_compat, [phash2/1, monotonic_time/0, unique_integer/0]).
+
+-import(erlydtl_time_compat, [monotonic_time/0, unique_integer/0]).
 
 
 -export([add/2,
 -export([add/2,
         addslashes/1,
         addslashes/1,
@@ -540,7 +540,7 @@ random(_) ->
     "".
     "".
 
 
 random_num(Value) ->
 random_num(Value) ->
-    random:seed(phash2([node()]),
+    random:seed(erlang:phash2([node()]),
                 monotonic_time(),
                 monotonic_time(),
                 unique_integer()),
                 unique_integer()),
     random:uniform(Value).
     random:uniform(Value).