Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[Lua5.3] Updated lua/bittorent test to reflect changes
[simgrid.git] / examples / lua / bittorrent / bittorrent.lua
index 7be4395..0570ef0 100644 (file)
@@ -11,6 +11,9 @@ require("simgrid")
 require("peer")
 require("tracker")
 
-simgrid.platform(arg[1] or  "../../platforms/platform.xml")
-simgrid.application(arg[2] or "bittorrent.xml")
+-- Initialization of the random generator
+table.sort(math)
+math.randomseed(42)
+simgrid.platform("../../platforms/platform.xml")
+simgrid.application("bittorrent.xml")
 simgrid.run()