]> granicus.if.org Git - ejabberd/commitdiff
Fix randoms.erl on R17 that don't have random:seed(integer())
authorPaweł Chmielowski <pchmielowski@process-one.net>
Mon, 7 Dec 2015 15:37:40 +0000 (16:37 +0100)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Mon, 7 Dec 2015 15:37:40 +0000 (16:37 +0100)
src/randoms.erl

index b2e95b256c8ce54a662e901658ddd803f247a81d..4068fa79d7c9fc3d834cec3eb2c044dac9ccad0d 100644 (file)
@@ -35,7 +35,7 @@ start() ->
     register(random_generator, spawn(randoms, init, [])).
 
 init() ->
-    random:seed(p1_time_compat:monotonic_time()), loop().
+    random:seed(p1_time_compat:timestamp()), loop().
 
 loop() ->
     receive