summaryrefslogtreecommitdiff
path: root/src/extauth.erl
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2015-12-07 16:08:57 +0100
committerPaweł Chmielowski <pchmielowski@process-one.net>2015-12-07 16:09:48 +0100
commit29db302808f94697689d3010b3b589f9a00333b9 (patch)
tree0c82aa6e6f99a6bb8c188ea9995eba38e095f5d5 /src/extauth.erl
parentFix bug in last commit (diff)
More now() replacements
Diffstat (limited to 'src/extauth.erl')
-rw-r--r--src/extauth.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/extauth.erl b/src/extauth.erl
index 64220fcb..9b84741d 100644
--- a/src/extauth.erl
+++ b/src/extauth.erl
@@ -102,8 +102,7 @@ call_port(Server, Msg) ->
receive {eauth, Result} -> Result end.
random_instance(MaxNum) ->
- {A1, A2, A3} = now(),
- random:seed(A1, A2, A3),
+ random:seed(p1_time_compat:monotonic_time()),
random:uniform(MaxNum) - 1.
get_instances(Server) ->