1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-05 19:42:11 +02:00

Fix more places where random:seed is used

This commit is contained in:
Paweł Chmielowski 2015-12-07 16:48:29 +01:00
parent d0df7be722
commit 95a9100623
2 changed files with 2 additions and 2 deletions

View file

@ -102,7 +102,7 @@ call_port(Server, Msg) ->
receive {eauth, Result} -> Result end.
random_instance(MaxNum) ->
random:seed(p1_time_compat:monotonic_time()),
random:seed(p1_time_compat:timestamp()),
random:uniform(MaxNum) - 1.
get_instances(Server) ->