aboutsummaryrefslogtreecommitdiff
path: root/src/mod_muc.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_muc.erl')
-rw-r--r--src/mod_muc.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_muc.erl b/src/mod_muc.erl
index ae3c6f9f7..9d53b8974 100644
--- a/src/mod_muc.erl
+++ b/src/mod_muc.erl
@@ -584,7 +584,7 @@ process_muc_unique(#iq{type = set, lang = Lang} = IQ) ->
xmpp:make_error(IQ, xmpp:err_not_allowed(Txt, Lang));
process_muc_unique(#iq{from = From, type = get,
sub_els = [#muc_unique{}]} = IQ) ->
- Name = str:sha(term_to_binary([From, p1_time_compat:timestamp(),
+ Name = str:sha(term_to_binary([From, erlang:timestamp(),
p1_rand:get_string()])),
xmpp:make_iq_result(IQ, #muc_unique{name = Name}).