Browse Source

replace 'erlang:unique_integer()' to 'os:system_time(micro_seconds)'

Valentine Nikonovich 8 years ago
parent
commit
6c423c9e23
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/herd_rand.erl

+ 1 - 1
src/herd_rand.erl

@@ -44,4 +44,4 @@ md5hex(Str) ->
 
 %% generates random md5 hash
 -spec hex() -> string().
-hex() -> md5hex(integer_to_list(erlang:phash2({erlang:unique_integer(), make_ref()}))).
+hex() -> md5hex(integer_to_list(erlang:phash2({os:system_time(micro_seconds), make_ref()}))).